This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
clean_packages [2018/08/16 21:03] – lami07 | clean_packages [2021/05/04 13:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== | + | ===== |
After removing, installing new or upgrading packages, there can be some packages not needed any more. | After removing, installing new or upgrading packages, there can be some packages not needed any more. | ||
- | They can be safely removed from the system. Every command has to be run with root privileges | + | They can be safely removed from the system. Every command has to be run with super user privileges **sudo**. |
Run: | Run: | ||
- | | + | sudo apt-get autoremove |
After upgrading packages, the package manager keeps all **deb** packages even if doesn' | After upgrading packages, the package manager keeps all **deb** packages even if doesn' | ||
Line 13: | Line 13: | ||
To remove all old **deb** packages from the system (the latest **deb** versions will be NOT removed), run: | To remove all old **deb** packages from the system (the latest **deb** versions will be NOT removed), run: | ||
- | | + | sudo apt-get autoclean |
If you would like to remove all the **deb** packages from the system, run: | If you would like to remove all the **deb** packages from the system, run: | ||
- | | + | sudo apt-get clean |
---- | ---- | ||
- | <WRAP center box 53%> | + | <WRAP center box 75%> |
- | [[fix_package|< | + | |[[fix_package|< |
</ | </ | ||