{"id":5360,"date":"2021-04-02T17:23:58","date_gmt":"2021-04-02T17:23:58","guid":{"rendered":"https:\/\/linuxways.net\/?p=5360"},"modified":"2021-04-02T17:23:58","modified_gmt":"2021-04-02T17:23:58","slug":"install-podman-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-podman-on-ubuntu-20-04\/","title":{"rendered":"Install Podman on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Podman or Pod Manager is a very popular utility for managing containers and the storage volumes that are mounted onto those containers. A pod is basically a group of different containers. The name of this tool also indicates that it is solely dedicated to container management. Therefore, today\u2019s discussion will be dedicated to the installation and removal methods of Podman on Ubuntu 20.04.<\/p>\n<h2>Method of Installing Podman on Ubuntu 20.04:<\/h2>\n<p>In order to install Podman on Ubuntu 20.04, you have to perform the steps that follow:<\/p>\n<h3>Step # 1: Update Ubuntu 20.04 System\u2019s Cache:<\/h3>\n<p>First, you need to update your system\u2019s cache with the following command:<\/p>\n<pre><strong>$ sudo apt update \u2013y<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"29\" class=\"wp-image-5361\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-392.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-392.png 440w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-392-300x20.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/strong><\/p>\n<p>After the completion of the update process, your Ubuntu 20.04 terminal will display the messages shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"530\" class=\"wp-image-5362\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-393.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-393.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-393-300x222.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<h3>Step # 2: Source the Release Version of your Ubuntu 20.04 System:<\/h3>\n<p>Now you need to source the release version of your Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>$ source \/etc\/os-release<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"31\" class=\"wp-image-5363\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-394.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-394.png 474w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-394-300x20.png 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/strong><\/p>\n<p>This command will not display any messages upon successful execution as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"481\" height=\"45\" class=\"wp-image-5364\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-395.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-395.png 481w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-395-300x28.png 300w\" sizes=\"auto, (max-width: 481px) 100vw, 481px\" \/><\/p>\n<h3>Step # 3: Create an APT Source File:<\/h3>\n<p>After this, you need to create an APT source file with the following command:<\/p>\n<pre><strong>$ sudo sh \u2013c \u201cecho \u2018deb http:\/\/download.opensuse.org\/repositories\/devel:\/kubic:\/libcontainers:\/stable\/xUbuntu_${VERSION_ID}\/ \/\u2019 &gt; \/etc\/apt\/sources.list.d\/dlevel:kubic:libcontainers:stable.list\u201d<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"65\" class=\"wp-image-5365\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-396.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-396.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-396-300x27.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/strong><\/p>\n<p>You need to be very careful about the syntax of this command since it is a bit too lengthy. However, this command will also not display any output upon successful execution.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"80\" class=\"wp-image-5366\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-397.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-397.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-397-300x33.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<h3>Step # 4: Add an APT Key:<\/h3>\n<p>Now, you need to add an APT key with the help of the command shown below:<\/p>\n<pre><strong>$ wget \u2013nv https:\/\/download.opensuse.org\/repositories\/devel:kubic:libcontainers:stable\/xUbuntu_${VERSION_ID}\/Release.key -O- | sudo apt-key add \u2013<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"68\" class=\"wp-image-5367\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-398.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-398.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-398-300x28.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/strong><\/p>\n<p>Again, you need to be very careful about the syntax of this command since it is also very lengthy. However, this command will also not display any output upon successful execution.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"137\" class=\"wp-image-5368\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-399.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-399.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-399-300x57.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h3>Step # 5: Update your System Again:<\/h3>\n<p>After adding the APT key, you need to update your system again with the following command:<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"28\" class=\"wp-image-5369\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-400.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-400.png 412w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-400-300x20.png 300w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/strong><\/p>\n<p>After the completion of the system update, these messages will be displayed on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"527\" class=\"wp-image-5370\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-401.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-401.png 714w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-401-300x221.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<h3>Step # 6: Install Podman on your Ubuntu 20.04 System:<\/h3>\n<p>Now, you can install Podman on Ubuntu 20.04 with the command shown below:<\/p>\n<pre><strong>$ sudo apt-get \u2013y install podman<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"27\" class=\"wp-image-5371\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-402.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-402.png 549w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-402-300x15.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/strong><\/p>\n<p>It will take some time for it to install after which you will receive the following messages on the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"531\" class=\"wp-image-5372\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-403.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-403.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-403-300x222.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h3>Step # 7: Check the Installed Version of Podman on your Ubuntu 20.04 System:<\/h3>\n<p>Finally, you can verify Podman installation on your Ubuntu 20.04 by checking its version with the command shown below:<\/p>\n<pre><strong>$ sudo podman --version<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"29\" class=\"wp-image-5373\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-404.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-404.png 467w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-404-300x19.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/p>\n<p>The version of Podman installed on our Ubuntu 20.04 system is 3.0.1 as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"488\" height=\"67\" class=\"wp-image-5374\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-405.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-405.png 488w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-405-300x41.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<h2>Method of Removing Podman from your Ubuntu 20.04 System:<\/h2>\n<p>You can always remove Podman from your Ubuntu 20.04 system with the command shown below:<\/p>\n<pre><strong>$ sudo apt-get purge podman<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"27\" class=\"wp-image-5375\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-406.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-406.png 502w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-406-300x16.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/strong><\/p>\n<p>After purging Podman from your Ubuntu 20.04 system, you can execute the following command to remove the unused packages and dependencies as well:<\/p>\n<pre><strong>$ sudo apt-get autoremove<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"27\" class=\"wp-image-5376\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-407.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-407.png 485w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-407-300x17.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/strong><\/p>\n<h2>Conclusion:<\/h2>\n<p>If you ever wish to manage your pod deployment efficiently, you can conveniently follow the installation method that has been shared with you in this article to install Podman on your system. However, you can always free up the occupied space by uninstalling Podman from your system by following its uninstallation method.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: Podman or Pod Manager is a very popular utility for managing containers and the storage volumes that are mounted onto those containers. A pod is basically a&hellip;<\/p>","protected":false},"author":1,"featured_media":5377,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[245,100],"class_list":["post-5360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-podman","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=5360"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5360\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/5377"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=5360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=5360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=5360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}