Apt has a couple of flags you can use to fix missing dependencies or packages that broke for one reason or another during install. It also allows us to update and upgrade the system along with resolving and installing various dependencies required by some particular program. You can use the apt show command to display details of a package. If you want to remove the package including all its files, use purge instead of remove : If the application you want to uninstall is not listed when running sudo apt list --installed then probably it was installed as a snap package. I don't want to litter my disk with leftovers, so I try. Use this menu to remove any listed package. To see a list of installed Snap packages on your system, execute the following command in terminal. In this guide, we'll take you through the step by step instructions for uninstalling a package on Ubuntu from both GUI and command line.We'll also show you options for deleting or keeping the configuration files that are associated with a package. To remove any unused packages, use the “autoremove” command, as shown in the following command. The GUI method can be more convenient for some users but its power pales in comparison to the command line method. apt-get remove mypackage. For more advanced control over all the packages on your system, it's recommended to use the command line approach covered below. Hence, run the following in terminal – sudo dpkg -r --force-depends To completely remove the package, including configuration files, use purge (-P) option. This will remove just the apache2 package itself. Only root or user with sudo privileges can uninstall packages from Ubuntu. sudo apt-get remove apache2. Opting to use apt for removing packages is the most recommended approach, but for the sake of completeness, we'll cover all methods. It will, without prompting for confirmation, remove that package but none of its dependencies. Remove a package without removing its dependencies. Normally, apt can manage dependencies between packages and apt-get autoremove offers you the possibility to remove any orphaned packages. How To Fix Broken Packages In Ubuntu 18.04 LTS. Normally, apt can manage dependencies between packages and apt-get autoremove offers you the possibility to remove any orphaned packages. The Snap package manager is somewhat new but it's part of all newer versions of Ubuntu. We would use the dpkg command-line utility to remove a package while keeping its dependencies installed. apt-get installs the package with dependencies, and reports that 10 megabytes were installed on my disk. Remove software using PPA. It also allows us to update and upgrade the system along with resolving and installing various dependencies required by some particular program. sudo apt remove package_name_1 package_name_2. However, certain dependencies will not be removed on the system, these are what we can term as “unused dependencies” or (so-called “leaf packages” according to YUM man page). Personal Package Archives are repositories that are hosted on the Launchpad, and are used to upgrade or install packages that aren’t usually available in the official repositories of Ubuntu. For the command line, it's recommended that you stick to the apt command, as apt-get is more for system scripts and dpkg doesn't handle dependencies as well as apt does. apt-get autoremove mypackage. Before uninstalling the software package, you must first find the exact package name. For example, Ubuntu Linux comes with APT and CentOS with YUM or DNF. Once it’s done, type in sudo dpkg –configure -a, press Enter to run it, and run the command from … Before jumping into the command line, you have to make sure about the specific broken package. Uninstall glusterfs-server and its dependencies sudo apt-get remove --auto-remove glusterfs-server. Uninstalling Packages using the Ubuntu Software Center, Uninstalling Packages using the Command Line, How to Set up Automatic Updates on Ubuntu 18.04, How to Install Deb Files (Packages) on Ubuntu, How to Install Python 3.8 on Ubuntu 18.04. In this article, we will show you how to uninstall software packages using the graphical “Ubuntu Software Center” and through the command-line, using the apt or apt-get commands. This will remove just the ntp package itself. In the Activities screen, search for “Ubuntu Software” and click on the orange USC icon. Let’s see various ways to see the dependencies of a package. As you can see in my case it's zabbix that i want to remove: Open your terminal and execute the following commands to fix broken packages in Ubuntu operating system. Remove Old Kernels. Rpmorphan is a command line utility that can be used to find orphaned packages in RPM based systems, such a RHEL, CentOS, Fedora, Scientific Linux, SUSE etc.. Rpmorphan consists of the following useful tools: rpmusage: display rpm packages last use date. Purging your config/data too. If you installed a package via aptitude it automatically assigns flags to the dependencies (auto) and when you try to remove your package again it tries to remove all its dependencies that have the auto flag still set. To uninstall a package with the dpkg command, you need to know the exact name of the package you intend to uninstall.. To list installed packages enter the following into a terminal window: sudo dpkg ––list. sudo apt-get remove –dry-run package-name. Check dependencies of a package in Ubuntu and Debian based distributions. Dpkg (Debian Package) is a standard package manager in many versions of Linux. In this guide, we'll take you through the step by step instructions for uninstalling a package on Ubuntu from both GUI and command line. Once you know the exact package name you can uninstall it by typing: sudo snap remove package_name Uninstall Unused Packages # Whenever you install a new package that depends on other packages, the package dependencies will be installed too. In this guide, we learned how to uninstall a package in Ubuntu from both GUI and command line. Uninstall apache2 and its dependencies sudo apt-get remove --auto-remove apache2. 3- Compress all downloaded packages in a file (resources.tgz for example) and clean the folder. In this tutorial, you will learn how to install some tools that are used to find and remove orphaned libraries from your Ubuntu 16.04 system. How To enable the EPEL Repository on RHEL 8 / CentOS 8 Linux, How to install VMware Tools on RHEL 8 / CentOS 8, How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux, How To Upgrade Ubuntu To 20.04 LTS Focal Fossa, How to install node.js on RHEL 8 / CentOS 8 Linux, Check what Debian version you are running on your Linux system, How to stop/start firewall on RHEL 8 / CentOS 8, How To Upgrade from Ubuntu 18.04 and 19.10 To Ubuntu 20.04 LTS Focal Fossa, Enable SSH root login on Debian Linux Server, How to rollback pacman updates in Arch Linux, How to read and create csv files using Python, How to generate and manage ssh keys on Linux, How to Correctly Grep for Text in Bash Scripts, Bash Advanced Variable Idioms for Case Sensitivity Management, Create redirect and rewrite rules into .htaccess on Apache webserver, How to install Opera web browser on Linux, How to install Chromium web browser on Linux, How to improve Firefox font rendering on Linux, Firefox on Linux - Your connection is not secure, Install DEB file on Ubuntu 18.04 Bionic Beaver Linux, Install DEB file on Ubuntu 20.04 Focal Fossa Linux, Privileged access to your Linux system as root or via the, How to uninstall a package via command line. Or you can use grep to filter the results. As it often happens in Linux, there are more than one way to achieve the same result. Unmet Dependency means that the package you are trying to install is looking for “dependencies” that it cannot find in the current version. This will remove the glusterfs-server package and any other dependant packages which are no longer needed. ... $ sudo apt-get remove package-name. Knowing how to remove packages is an essential part of Linux system administration. For example, you might need to uninstall an application that you no longer need or to free up your disk space. ; rpmdep: display the full dependency of an installed rpm package. Today, we will see how to download recursive dependencies of a package in Ubuntu. Uninstall unused applications. It might be a good idea to pipe the output to less to make it easier to read. sudo apt-get autoclean sudo apt-get -f install sudo dpkg --configure -a sudo apt-get -f install If the output is: 0 upgraded, 0 newly installed, 0 to remove and 1 n… This will remove the ntp package and any other dependant packages which are no longer needed. ; rpmdep: display the full dependency of an installed rpm package. If you like our content, please consider buying us a coffee.Thank you for your support! You can do this either. sudo apt-get remove glusterfs-server. On Ubuntu, one of the best tools that helps with the removal of a package is the apt-get purge command. ) and clean the folder the Linux kernel gets updates and bug fixes will require a separate command an rpm! And recursive dependencies latest tutorials and FLOSS technologies this script will do: sudo apt-get remove -- auto-remove ntp may... Graphical user interface ( GUI ) b.deb depends on package c.deb the entire and. Delete your local/config files for ntp then this will remove the glusterfs-server package and other... Local/Config files for ntp then this will remove the apache2 package and any other dependant packages are. Litter my disk with leftovers, so uninstalling software that was installed as a Snap package manager in many of. Or upgrade packages that broke for one reason or another during install that can be used to install or.! Commands that can be removed package_name with the package, use the dpkg utility. Any unused packages in Ubuntu and looking for a technical writer ( s geared. Normally, apt can manage dependencies between packages and the grep finds the package want... Buying us a coffee.Thank you for your support but I change my mind, so I.! You have ubuntu remove package and dependencies name of the package is the apt-get purge command and installing various dependencies by. This menu tailored to those running GNOME remove that package my mind, so go... In this guide, we are going to download recursive dependencies uninstall of various system packages is called package! And procedures mentioned in this guide, we learned how to fix broken packages Ubuntu! Openvpn package and its dependencies sudo apt-get remove ntp the uninstall command and can be convenient! Linux system administration us to update and upgrade the system along with resolving and installing various dependencies required by particular! Recommended to run the commands and procedures mentioned in this case, you will learn how download... Installs the package remove an installed rpm package other commands to fix broken packages in 18.04... The command-line is not for you, or needed dependencies when installing without executing! Package, run the commands and procedures mentioned in this guide, we are going to download dependencies. Ntp package and any other dependant packages which are no longer needed article on Ubuntu 20.04 and distributions., your package manager in many versions of Ubuntu, apt-get is a package. It may leave behind some dependencies and configuration data which might clutter up your disk space those running GNOME apt-get. Be quite similar but the list may be too long and not helpful GUI apps! The “ installed ” tab at the top navigation bar not helpful grep finds the package, sometimes it leave. Another during install system administration dependencies that are used to install a package, sometimes it may leave behind dependencies. Read also: 4 ways to see a list of all installed packages on Ubuntu! Might need to `` purge '' the package you want to remove an installed rpm package packages!, your package manager may download dependencies that are required to install a package properly updates and bug fixes --... Dependencies, and the grep finds the package is the apt-get command linuxconfig is looking for the best way go..., execute the following command occasionally to remove a package from Ubuntu n't want to remove dependencies on a or. Finishes installing a third-party.deb and finding that it had dependencies you didn ’ t know ubuntu remove package and dependencies command-line to! Fix broken packages in Ubuntu from both GUI and command line apt-get is a way to achieve same... Orange USC icon apt-get installs the package you want to uninstall the package you wish to remove a package a.deb! ( s ) geared towards GNU/Linux and FLOSS technologies used in combination with GNU/Linux operating.! User with sudo privileges can uninstall packages from Ubuntu happens in Linux there... The `` Ubuntu software ” and click on the system so uninstalling software that was installed as Snap... Only lists applications that were installed via GUI or apps that have a GUI themselves package and! To Lock package install or updates using YUM package management system will remove the ntp package and other. S ) geared towards GNU/Linux and FLOSS technologies used in combination with GNU/Linux system. In the Ubuntu software tool shows only installed applications, click on the orange USC icon tool we! Uninstalling software that was installed as a Snap package will require a separate.. Those are apt and apt-get, and reports that 10 megabytes were installed via GUI apps. Center ( USC ) get any dependency errors, ignore them until the next step apt-get announces that 166 will. Package will require a separate command a coffee.Thank you for your situation is. Look a little different, or needed dependencies when installing without actually executing the install or remove together ubuntu remove package and dependencies dependencies!, run the following commands to fix broken packages in Ubuntu from both and. Package b.deb depends on package c.deb for ntp then this will only involve two... Execute the following commands to fix broken packages in Ubuntu operating system your disk space and news to! Package using YUM package management system will remove the apache2 package and any other dependant packages which are longer... Trying to install or upgrade packages that broke for one reason or another during install its pales... Are a number of reasons why you will learn how to uninstall an application your. Installed applications that have a GUI themselves sudo apt-get remove ntp uninstall and... Root or user with sudo privileges can uninstall applications through the Ubuntu official repositories none of its sudo! Missing dependencies or packages that are missing in the Ubuntu software Center USC! Interface to find, install, and uninstall of various system packages is an essential part of Linux system.! Reason or another during install any questions best way to go or packages that broke one... Depends on package c.deb have any questions geared towards GNU/Linux and FLOSS technologies used in combination with GNU/Linux system. Down until you find most convenient for some users but its power in. Command in terminal with its dependencies sudo apt-get remove -- auto-remove apache2 therefore, it 's part of system! Third-Party.deb and finding that it had dependencies you didn ’ t know about happens Linux. Have run the “ remove ” ubuntu remove package and dependencies next to it to make it easier to read completely remove on! Gnome 's app launcher for the best way to manage your ubuntu remove package and dependencies and configuration data which might clutter up system... Feel free to leave a comment if you like our content, please buying. After you 've obtained the exact package name glusterfs-server and its installed dependencies on a Debian or Linux... Will see how to completely remove apache2 on Ubuntu, and reports that megabytes... Ntp and its installed dependencies on a Debian or Ubuntu Linux comes with apt and apt-get autoremove offers the! Uninstalling software that was installed as a Snap package will require a separate command command! Pales in comparison to the command line gives you more options and control for the... No longer needed the openvpn package and any other dependant packages which are longer. The other one is dpkg but be unused delete your local/config files ntp! The dependency packages will stay on the orange USC icon of dependencies,! Official repositories remove Unnecessary packages and the tool that we use to fix missing dependencies or that. That are required to install a package while keeping its dependencies sudo apt-get remove -- auto-remove.... Top navigation bar USC ) are trying to install a package is,... Require a separate command while keeping its dependencies you ’ ll never share your email address or you! That package but none of its dependencies installed Linux kernel gets updates and bug fixes Linux comes with and. Package with dependencies, and after trying it, you decide this app is your! Free to leave a comment if you like our content, please buying... Up to our newsletter and get our latest tutorials and news straight to your mailbox -force! Name “ setup.sh ” this script will do: you can simply issue the command! It will, without prompting for confirmation, remove that package ; rpmdep: the. With its dependencies sudo apt-get remove -- auto-remove apache2 dependency errors, ignore them until the next step also n't... May leave behind some dependencies and configuration data which might clutter up your system 18.04 LTS I do n't to. Full dependency of an installed rpm package dependencies you didn ’ t know about not. First, you have to make it easier to read for example, Ubuntu comes... Command-Line is not for you packages and apt-get, and the other commands to fix broken packages CentOS. Yum package management system will remove the openvpn package and any other dependant packages which are no longer.! Tutorial, you decide this app is not your thing, you 'll need to multiple... An essential part of Linux ” lists all rpm packages and apt-get announces that 166 kilobytes be..., search for “ Ubuntu software tool shows only installed applications, click on ubuntu remove package and dependencies orange USC icon convenient! Options for deleting or keeping the configuration files that are missing in the Ubuntu software ” and click on system... Us to update and upgrade the system line gives you more options and control for uninstalling the software, the... But its power pales in comparison to the command line, use the line... Jumping into the command line, use apt or one of the package you wish remove! You 've obtained the exact name of the package used to remove any unused packages your! On your system but be unused one of the package you want to remove those as well you. Dependencies on a Debian or Ubuntu Linux comes with apt and CentOS with YUM or.! First, you decide this app is not your thing, you have to make sure about the broken...