{"id":306915,"date":"2023-03-14T14:49:29","date_gmt":"2023-03-14T21:49:29","guid":{"rendered":"https:\/\/linuxhint.com\/?p=306915"},"modified":"2023-03-18T13:44:47","modified_gmt":"2023-03-18T20:44:47","slug":"manage-packages-linux-mint","status":"publish","type":"post","link":"https:\/\/linuxhint.com\/manage-packages-linux-mint\/","title":{"rendered":"How to Manage Packages on Linux Mint 21"},"content":{"rendered":"<div id=\"wpbody\">Linux Mint is the popular and user-friendly distribution of Linux, based on Debian and Ubuntu.<\/p>\n<p>Installing, updating, and removing packages is one of the tasks that every user has to do on Linux. To perform these operations, you will need a <strong>Package Manager<\/strong>.<\/p>\n<p>A concept of Package Management is the method through which the software is distributed in Linux. There are different GUI package management tools available for all Linux distributions. In the Linux Mint, the Synaptic Package Manager is a popular built-in tool, used for managing the packages. In this tutorial, we are going to explain the managing of packages in Linux Mint 21.<\/p>\n<h2>What is a Package in Linux Mint 21<\/h2>\n<p>In Linux Mint, the package is the archive or compressed file that contains all the information for installing specific software. The <strong>Package formats<\/strong> are used when multiple files including source and text data files are combined in a single archive. The package contains the software name, its purpose, and version number. These packages are used for the installation of the software on Linux Mint.<\/p>\n<p>There are multiple package formats in Linux Mint including Debian packages <strong>(.Deb), TAR archives (.tar)<\/strong>, <strong>TGZ (.tgz), and GZip archives (.gz)<\/strong>. <\/p>\n<p>Deb is the native software package format for Linux Mint. It is developed for the Debian-based Linux distributions, each package contains two archive files one with control information and the other with the installable data. These files are in .tar format and package management for deb files is <strong>dpkg<\/strong>. It handles the packing unpacking installation, updation, and removal of software from Linux Mint.<\/p>\n<h2>How to Manage Packages on Linux Mint 21 Using Synaptic Package Manager<\/h2>\n<p>A concept of package management is the way of distributing software in Linux. <strong>Synaptic Package Manager<\/strong> is a modern and user-friendly package manager in Linux Mint. It is used to install and manage software and provides great flexibility to developers and users. You can access the synaptic package manager through your Linux Mint menu. Open the menu and search for the <strong>Synaptic Package Manager<\/strong>:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-1.png\" alt=\"\" width=\"624\" height=\"549\" class=\"aligncenter size-full wp-image-306916\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-1.png 624w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-1-300x264.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p>You can search for any installed software through the search icon:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-2.png\" alt=\"\" width=\"624\" height=\"408\" class=\"aligncenter size-full wp-image-306917\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-2.png 624w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-2-300x196.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<h2>How to Install and Remove Packages on Linux Mint Via Command Line<\/h2>\n<p>To install a package via command line apt package manager is used, the syntax of installing a package is mentioned below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"sy0\">&lt;<\/span>package-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>To remove a package using apt package manager use:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove <span class=\"sy0\">&lt;<\/span>package-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<h2>How to List all the Installed Packages on Linux Mint Via Command Line<\/h2>\n<p>You can view the installed packages on the Linux Mint through the GUI, but the other approach is via the command list. To list the installed apt packages, execute the below command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt list <span class=\"re5\">--installed<\/span><\/div><\/div>\n<p><img decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-3.png\" alt=\"\" width=\"624\" height=\"448\" class=\"aligncenter size-full wp-image-306918\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-3.png 624w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-3-300x215.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p>You can also get the list of installed packages through <strong>dpkg<\/strong> command, copy, and paste the command in your terminal and hit enter:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--list<\/span><\/div><\/div>\n<p><img decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-4.png\" alt=\"\" width=\"624\" height=\"444\" class=\"aligncenter size-full wp-image-306919\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-4.png 624w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-4-300x213.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<h2>How to Search for a Package in Linux Mint 21 Via Command Line<\/h2>\n<p>Searching the desired installed package on Linux Mint is also possible via the command line.  Below is the syntax of the command for searching a package in Linux Mint 21:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt search <span class=\"sy0\">&lt;<\/span>package-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>In our case we are executing the command for searching the installed java package on Linux Mint<\/p>\n<p>apt search Java:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">apt search <span class=\"kw2\">java<\/span><\/div><\/div>\n<p><img decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-5.png\" alt=\"\" width=\"624\" height=\"447\" class=\"aligncenter size-full wp-image-306920\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-5.png 624w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-5-300x215.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p> You can also use the <strong>apt-cache<\/strong> for searching the package in the Linux terminal as well:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">apt-cache search<\/span> <span class=\"sy0\">&lt;<\/span>package-name or keyword<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p>Here I am searching astro-java installed package on my Linux system<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">apt-cache search<\/span> astro-java<\/div><\/div>\n<p><img decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-6.png\" alt=\"\" width=\"624\" height=\"159\" class=\"aligncenter size-full wp-image-306921\" srcset=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-6.png 624w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/03\/Packages-on-Linux-Mint-6-300x76.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<h2>Wrapping Up<\/h2>\n<p>Installing, updating, and removing packages on Linux Mint 21 requires a package manager and software repositories. There are two different ways for managing a package on Linux Mint including GUI and terminal. The Synaptic Package Manager is the default manager of the Linux Mint. You can also use the command line for managing the different software on Linux Mint 21.\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>To manage packages on Linux Mint there are two ways one is through Synaptic package manager and the other through the command line. <\/p>\n","protected":false},"author":168,"featured_media":306923,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1344],"tags":[],"class_list":["post-306915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-mint"],"_links":{"self":[{"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/posts\/306915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/users\/168"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/comments?post=306915"}],"version-history":[{"count":0,"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/posts\/306915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/media\/306923"}],"wp:attachment":[{"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/media?parent=306915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/categories?post=306915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhint.com\/wp-json\/wp\/v2\/tags?post=306915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}