Installing podman 5+ on ubuntu older versions #25582
kolonelkrazy
started this conversation in
General
Replies: 1 comment
-
Instructions were updated to do pinning more sanely. If you go to upgrade your server this method could prove to be a headache if you forget you did this, maybe add something to your MOTD to remind you of this customization would help in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Podman 5 was released in Springish of 2024. My original comments here were ignorant of the release timings between Ubuntu/Podman, and I edited this post to be a usable solution instead of complaining:
Modern packages of Podman (version 5.3+) are included in a new build of Ubuntu 25.04 codename plucky. To get these packages but keep an LTS for the rest of the system you can do some apt tricks, specifically pinning.
Please note this can be dangerous if you aren't careful and don't know what you're doing.
My original system is 24.04 Ubuntu codenamed noble.
Your original ubuntu sources file looks something like this, I added
plucky
to the Suites./etc/apt/sources.list.d/ubuntu.sources
:To pin packages for podman it's dependencies and related stuff place this file:
/etc/apt/preferences/podman
This will allow you to install updated podman but keep packages for everything else pinned to the noble suite until you're ready to upgrade. In my case the cloud provider only has 24.04 ubuntu images available.
Check your work
apt update
apt-cache policy podman
- should show apt selecting the plucky podman package as the preferredapt-cache policy vim
- should show apt selecting the noble vim package as the preferredBeta Was this translation helpful? Give feedback.
All reactions