You are not logged in.
hi, i would like to know how to do "apt-get autoremove" and "apt-get autoclean" like debian based linux in arch for cleaning the system?
thanks you for this community....
Offline
pacman -R $(pacman -Qdtq)
In each heart, as pure it may be, there is a place of deepest and darkest abyss.
(by Apollo from archlinux.de, translated by a friend of mine who writes http://www.drunkduck.com/Captain_Communism/ )
Offline
BTW: With Arch, you don't have to! (TM) Or that's the impression I have anyway. See the remove options, there are flags which basically allow you to remove 'unneeded' stuff -when- it becomes unneeded.
For example:
Debian:
apt-get install sniffles - also installs libsniffle, libsniffle-dev
apt-get --purge remove sniffles - leaves libsniffle, libsniffle-dev which then have to be removed via autoremove. I'm not sure under what circumstances this won't even work and you'll end up having to use deborphan or somesuchArch:
pacman -S sniffles - also installs libsniffle, libsniffle-dev
pacman -Rcns sniffles - also removes libsniffle and libsniffle-devPerfect operating system:
<package manager> <install option> sniffles - laughs and blames it on temporary insanity that you'd want to install anything having anything to do with sniffles.Offline
If you just want to remove all packages in your cache (= autoclean AFAIK),
pacman -SccLast edited by underpenguin (2008-06-11 16:28:45)
Offline
If you just want to remove all packages in your cache (= autoclean AFAIK),
pacman -Scc
That does what aptitude clean does, the autoclean is equal to pacman -Sc.
Offline
pacman -Qdt
nice.
Offline
thank u for all your
reply......
Offline
sudo pacman -R $(pacman -Qdtq)
Even better by FreakGuard
Offline
sudo pacman -R $(pacman -Qdtq)
Even better by FreakGuard
Why dredge up this old thread??
Online