You also learned how to check whether a particular package is installed, and how to get a quick count of the installed packages. Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays. Did you know that there are thousands of packages installed on your Linux system? You might be wondering where these packages came from. A lot of your packages come pre-installed on a newly installed Linux system.
You have probably also installed more packages over time to enhance the functionalities of the system. Which installed software packages use the most disk space on Debian? Ask Question.
Asked 9 years, 7 months ago. Active 1 year, 3 months ago. Viewed 98k times. Improve this question. Braiam Mirzhan Irkegulov Mirzhan Irkegulov 7, 11 11 gold badges 40 40 silver badges 53 53 bronze badges. You you have space on other partition. There may be other solutions. Add a comment. Active Oldest Votes.
Improve this answer. JosephH JosephH 2, 2 2 gold badges 12 12 silver badges 9 9 bronze badges. It's not the actual size, I'm afraid. FWIW, if you want the largest packages first, use sort -nr instead of sort -n. The command to empty the package cache is apt-get clean. What does "config-files" vs "installed" mean in wajig output? Their documentation doesn't quite explain this. Fizz I suspect "config-files" means that the package has been uninstalled, but has not been purged apt-get purge so the config files are still there in case the package is reinstalled at a later time.
Either way, you just need to know the commandline options to use. Following text uses long options for ease of searching documentation , but of course short options are also available.
Braiam Braiam Not sure if there is a way to do it, but it'd be nice to always print size in kB, that'd make it much easier to sort or otherwise postprocess. Also, you can add a user-tag to certain package so you can manipulate them as whole like the tasks. In case you don't want to install wajig. I imagine everybody has debian-goodies installed: dpigs - Show which installed packages occupy the most space. This or JosephH's answer are the best! Still, dpigs is simple and short.
To list the installed software packages on your machine you can use the following command:. The output of the command will be very similar to the following one, depending on which packages are currently installed:. The output from the above command will list all packages that include apache in their names. Apt supports patterns to match package names and options to list installed --installed packages, upgradeable --upgradeable packages or all available --all-versions package versions.
Another alternative that you can use to list the installed software packages on your Ubuntu VPS is the dpkg command. The output of the command will provide you with information such as the name of the package, version, architecture, and a short description of the package.
0コメント