{"id":4425,"date":"2021-02-12T16:48:29","date_gmt":"2021-02-12T16:48:29","guid":{"rendered":"https:\/\/linuxways.net\/?p=4425"},"modified":"2021-02-12T16:48:57","modified_gmt":"2021-02-12T16:48:57","slug":"how-to-install-and-use-flatpak-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-and-use-flatpak-on-ubuntu-20-04\/","title":{"rendered":"How to Install and Use Flatpak on Ubuntu 20.04\u00a0"},"content":{"rendered":"<p>Flatpak is a universal system package, used for application virtualization, deployment, and mainly used for package management that almost works on all Linux environments.\u00a0 This application comes bundled with all other packages dependencies and libraries. Flatpak has an important feature, all applications work in a sandbox or work in an isolated environment.\u00a0 So, various versions of an application can run on a single system.<\/p>\n<p>This article will explain to you the complete procedure of the installation of Flatpak on the Ubuntu 20.04 system through the command line.\u00a0 You can install Flatpak on Ubuntu 20.04 system in two different ways:<\/p>\n<ol>\n<li>Install Flatpak from the official Ubuntu repository<\/li>\n<li>Install Flatpak using the PPA Alexander Larsson repository. (The PPA repository gets you the latest Flatpak version on the Ubuntu system).<\/li>\n<\/ol>\n<p>Let\u2019s start the installation of Flatpak on the Ubuntu 20.04 system:<\/p>\n<h2><strong>Method 1: Install Flatpak from Official Ubuntu Repository<\/strong><\/h2>\n<p>Flatpak can be installed easily from the Ubuntu official repository by using the apt package manager. So, open the terminal application through the application search bar or press \u2018Ctrl + Alt + t\u2019 to open the command line window.<\/p>\n<p>Now, update the system apt packages by using the below-mentioned command:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>The above command updates all packages, it helps you to install the latest version of an application on your system. However, issue the following terminal command as the root user to install Flatpak on Ubuntu 20.04 system:<\/p>\n<pre>$ sudo apt install Flatpak<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1085\" height=\"853\" class=\"wp-image-4426\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-230.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-230.png 1085w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-230-300x236.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-230-1024x805.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-230-768x604.png 768w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/p>\n<p>Enter the root password. After that, the installation would start on your system. You will notice the confirmation prompt appears on the terminal window during the Flatpak installation. So, press \u2018Y\u2019 and then \u2018Enter\u2019 to confirm the installation process.<\/p>\n<p>Once the Flatpak installation is completed, check the installed version by executing the following command:<\/p>\n<pre>$ flatpak \u2013version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"58\" class=\"wp-image-4427\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-231.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-231.png 728w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-231-300x24.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<h2><strong>Method 2: Install Flatpak using the PPA Alexander Larsson repository<\/strong><\/h2>\n<p>To install the latest version of the Flatpak, add the PPA repository to your system by running the following command:<\/p>\n<pre>$ sudo add-apt-repository ppa:alexlarsson\/flatpak<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1086\" height=\"755\" class=\"wp-image-4428\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-232.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-232.png 1086w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-232-300x209.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-232-1024x712.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-232-768x534.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/p>\n<p>Now, update the system packages repository and then, install Flatpak by executing the below-mentioned command:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1085\" height=\"463\" class=\"wp-image-4429\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-233.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-233.png 1085w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-233-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-233-1024x437.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-233-768x328.png 768w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/p>\n<pre>$ sudo apt install flatpak<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1090\" height=\"748\" class=\"wp-image-4430\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-234.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-234.png 1090w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-234-300x206.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-234-1024x703.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-234-768x527.png 768w\" sizes=\"auto, (max-width: 1090px) 100vw, 1090px\" \/><\/p>\n<p>Check the installed Flatpak version. You will notice that the latest Flatpak version\u00a0 is installed on your system:<\/p>\n<pre>$ Flatpak \u2013version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"93\" class=\"wp-image-4431\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-235.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-235.png 1093w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-235-300x26.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-235-1024x87.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-235-768x65.png 768w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/p>\n<h2><strong>Install Software by using the Flatpak<\/strong><\/h2>\n<p>You can install any application through the Flatpak on your system.\u00a0 Follow the below-mentioned step to install software through Flatpak:<\/p>\n<h3><strong>Step 1: Add Flathub repository<\/strong><\/h3>\n<p>Add the Flathub repository by running the following terminal command:<\/p>\n<pre>$ flatpak remote-add --if-not-exists flathub <a href=\"https:\/\/flathub.org\/repo\/flathub.flatpakrepo\">https:\/\/flathub.org\/repo\/flathub.flatpakrepo<\/a><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1085\" height=\"320\" class=\"wp-image-4432\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-236.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-236.png 1085w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-236-300x88.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-236-1024x302.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-236-768x227.png 768w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/p>\n<p>Now, update the repository as follows:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"528\" class=\"wp-image-4433\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-237.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-237.png 1093w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-237-300x145.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-237-1024x495.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-237-768x371.png 768w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/p>\n<h3><strong>Step 2: Search application Through Flatpak<\/strong><\/h3>\n<p>To do this, search the application name by using the following syntax:<\/p>\n<pre>$ flatpak search [application_name]<\/pre>\n<p>For example, we want to search postman application through flatpak then, the following command use to search postman by using the flatpak software:<\/p>\n<pre>$ Flatpak search postman<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1086\" height=\"231\" class=\"wp-image-4434\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-238.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-238.png 1086w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-238-300x64.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-238-1024x218.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-238-768x163.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/p>\n<h3><strong>Step 3: Install application through Flatpak<\/strong><\/h3>\n<p>Install the postman through the Flatpak on your system. To do this, run the below-given command on the terminal:<\/p>\n<pre>$ flatpak install flathub [Application_ID]<\/pre>\n<p>The command will change into the following form:<\/p>\n<pre>$ flatpak install flathub com.getpostman.Postman<\/pre>\n<p>Or<\/p>\n<pre>$ flatpak install flathub postman<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"376\" class=\"wp-image-4435\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-239.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-239.png 990w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-239-300x114.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-239-768x292.png 768w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"643\" class=\"wp-image-4436\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-240.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-240.png 986w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-240-300x196.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-240-768x501.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"618\" class=\"wp-image-4437\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-241.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-241.png 996w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-241-300x186.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-241-768x477.png 768w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/p>\n<h3><strong>Step 4: Uninstall application through Flatpak<\/strong><\/h3>\n<p>You can also uninstall the application through the flatpak:<\/p>\n<pre>$ flatpak uninstall [Application_ID]<\/pre>\n<pre>$ flatpak uninstall com.getpostman.Postman<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"992\" height=\"258\" class=\"wp-image-4438\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-242.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-242.png 992w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-242-300x78.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-242-768x200.png 768w\" sizes=\"auto, (max-width: 992px) 100vw, 992px\" \/><\/p>\n<h2><strong>Uninstall or Remove Flatpak from Ubuntu 20.04<\/strong><\/h2>\n<p>To remove the Flatpak from the Ubuntu system, type the following command:<\/p>\n<pre>$ sudo apt remove flatpak<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1092\" height=\"566\" class=\"wp-image-4439\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-243.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-243.png 1092w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-243-300x155.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-243-1024x531.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-243-768x398.png 768w\" sizes=\"auto, (max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p>To remove the PPA Alex Larsson repository, run the below-given command on the terminal:<\/p>\n<pre>$ sudo rm \/etc\/apt\/sources.list.d\/alexlarsson-ubuntu-flatpak-focal.list<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1086\" height=\"129\" class=\"wp-image-4440\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-244.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-244.png 1086w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-244-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-244-1024x122.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-244-768x91.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>We have executed various commands for Flatpak installation on Ubuntu 20.04 system article. We have shown how you can install an application through Flatpak software. We have also explained the two different removal processes of Flatpak.\u00a0 Now, using this universal software, you can access the latest applications on your system.<\/p>","protected":false},"excerpt":{"rendered":"<p>Flatpak is a universal system package, used for application virtualization, deployment, and mainly used for package management that almost works on all Linux environments.\u00a0 This application comes bundled&hellip;<\/p>","protected":false},"author":2,"featured_media":4441,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[100],"class_list":["post-4425","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/4425","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=4425"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/4425\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/4441"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=4425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=4425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=4425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}