To get a list of all installed packages on your system type: The command will print a long list of the installed packages. Remove Unnecessary Packages and Dependencies. If you are using Ubuntu and looking for the best way to manage your dependencies and packages, apt-get is a way to go. How to reinstall a package using apt-get. 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. eval(ez_write_tag([[728,90],'linuxize_com-medrectangle-3','ezslot_12',159,'0','0']));You can open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon. We'll also show you options for deleting or keeping the configuration files that are associated with a package. After you've obtained the exact name of the package you wish to remove, use the following command to uninstall it. Open your terminal and execute the following commands to fix broken packages in Ubuntu operating system. This will remove just the apache2 package itself. Checking dependencies with apt show. This will remove the glusterfs-server package and any other dependant packages which are no longer needed. Any of the above commands will remove the specified package, but they will leave behind configuration files, and in some cases, other files that were associated with the package. Opting to use apt for removing packages is the most recommended approach, but for the sake of completeness, we'll cover all methods. If you're using a different desktop environment, the process should be quite similar but the menus will look a little different. The syntax of both commands is identical. If you like our content, please consider buying us a coffee.Thank you for your support! 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. It will, without prompting for confirmation, remove that package but none of its dependencies. 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. sudo apt remove package_name_1 package_name_2. This will remove just the openvpn package itself. For example, Ubuntu Linux comes with APT and CentOS with YUM or DNF. In the Activities screen, search for “Ubuntu Software” and click on the orange USC icon. Normally, removing a package using YUM package management system will remove that package together with its dependencies. Uninstall openvpn and its dependencies sudo apt-get remove --auto-remove openvpn. A common use here would be installing a third-party .deb and finding that it had dependencies you didn’t know about. Remove Old Kernels. This command lists all the software, but the list may be too long and not helpful. In other words, we are going to download the dependencies of dependencies. 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. Unmet Dependency means that the package you are trying to install is looking for “dependencies” that it cannot find in the current version. Replace package_name with the package you wish to uninstall… To uninstall multiple packages, run the commands below. To remove any unused packages, use the “autoremove” command, as shown in the following command. We can install dependency with the install subcommand, we can remove it with remove subcommand, update it with upgrade subcommand, and so on. How To Fix Broken Packages In Ubuntu 18.04 LTS. Move the downloaded packages to your Linux machine. You can do this either. You can remove the unneeded packages with: We have shown you how to remove applications from your Ubuntu through the command line and using the Ubuntu Software Center. sudo apt-get autoremove. Uninstall apache2 and its dependencies sudo apt-get remove --auto-remove apache2. 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. Two of those are apt and apt-get, and the other one is dpkg. Your articles will feature various GNU/Linux configuration tutorials and FLOSS technologies used in combination with GNU/Linux operating system. Let’s see various ways to see the dependencies of a package. Which will remove just the glusterfs-server package itself. 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. In this guide, we learned how to uninstall a package in Ubuntu from both GUI and command line. If you are using Ubuntu and looking for the best way to manage your dependencies and packages, apt-get is a way to go. Or you can use grep to filter the results. 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. Read Also: 4 Ways to Lock Package Install or Updates Using Yum The Snap package manager is somewhat new but it's part of all newer versions of Ubuntu. It will show orphaned packages when removing, or needed dependencies when installing without actually executing the install or remove. The simple way to fix this error is to update the package database, clean out the package cache, and download-and-reinstall the newer version. We would use the dpkg command-line utility to remove a package while keeping its dependencies installed. sudo dpkg --remove -force --force-remove-reinstreq PACKAGE_NAME_GOES_HERE We would use the dpkg command-line utility to remove a package while keeping its dependencies installed. sudo apt-get purge --auto-remove gimp You can also uninstall multiple packages. sudo add-apt-repository –remove ppa:kritalim/ppa. If you cannot find the package that you want to uninstall, then you should remove the package from the command line.eval(ez_write_tag([[728,90],'linuxize_com-box-3','ezslot_14',139,'0','0'])); Everything you can do using the GUI tools, you can do from the command line. After removing certain apps and packages some data is left every now and then, automatically bestowing upon the user the responsibility of rooting out the remnant data and deleting them. This leftover packages are no longer used by anything else and can be removed.