You are not logged in.
Pages: 1
Topic closed
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 -Qdt
Give what you have. To someone, it may be better than you dare to think.
Offline
pacman -R $(pacman -Qdtq)
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 somesuch
Arch:
pacman -S sniffles - also installs libsniffle, libsniffle-dev
pacman -Rcns sniffles - also removes libsniffle and libsniffle-dev
Perfect 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 -Scc
Last 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??
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
sorry to dig up this old thread, but to remove recursively the command should be
pacman -Rcs $(pacman -Qdtq)
otherwise, you would have to rerun
pacman -R $(pacman -Qdtq)
until no package shows up, as purged packages in the first run can turn other dependent packages orphans
Offline
Please don't necrobump 10 year old topics.
https://wiki.archlinux.org/index.php/Co … bumping.22
That information has long since been added to the wiki: https://wiki.archlinux.org/index.php/Pa … orphans.29
Closing.
Last edited by V1del (2018-08-07 11:12:58)
Online
Pages: 1
Topic closed