I'm on 20.04, which has logrotate
3.14.0. I need a later version which has important bugfixes.
This page shows that 20.04 has version 3.14.0, and this page shows that 21.04 has version 3.18.0 (the one I want).
I don't want to upgrade until the next LTS (22.04 I assume).
What are my options for getting the latest logrotate?
- upgrade to one of interim releases
- wait for next LTS
- PPA (none that I can find??)
- compile from source
Is there any other approach I've not considered?
One solution that I have used before is to just download the
.deb
package from a future release. Forlogrotate
, that would be this link. From here, just select the architecture, and then the mirror to download from.You can install it by using
dpkg -i
. If you are concerned about doing this, you can extract the contents into a temporary directory and see if anything looks like it might conflict with something else. For example:dpkg-deb --extract <deb file>
.When you finally decide to install it, if there are dependencies, it will warn you about them. (Of course, there is a list at the link above, as well.) If the dependencies are already satisfied, then you're done. If they are not, then you can decide whether you should manually download those or if you've gone too far and should stop. A dependency that many other programs rely on will cause you more problems down the road.
Keep in mind that when you upgrade your system, you might want to remove it and put the old version back and let the system upgrade it itself.
I have done the above previously with programs that had very few (usually no) dependencies.
Thanks to comments above, here's an updated list:
.deb
packageThat should be applicable for any package, not just logrotate.