You are not logged in.
pacman -Qdt | sed 's/ .*//' | sed -e :a -e '$!N; s/\n/ /; ta' | xargs sudo pacman -R
Hi Everyone!
I created this gigantic one liner to cleanup unused dependencies using pacman. However, I was wondering if there is a more efficient way of doing this. Anyone have any ideas?
Offline
How about
pacman -Rs $(pacman -Qdtq)Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
emmm, afaik you don't want to automatically loose everything listed by "pacman -Qdt"...
quick test on my system: kernel-headers? git? gnome-common?
Offline
emmm, afaik you don't want to automatically loose everything listed by "pacman -Qdt"...
quick test on my system: kernel-headers? git? gnome-common?
you should fully update your system then. kernel-headers was replaced by linux-api-headers, gnome-common is in your system because was as a makedepends, i suppose git the same.
Last edited by wonder (2010-05-22 15:24:51)
Give what you have. To someone, it may be better than you dare to think.
Offline
Ah, allright. My system is fully updated, and both kernel26-headers and linux-api-headers are installed. I'll just remove the kernel-headers then.
I installed git as makedepend, but still want to keep it
Ok, maybe I should just work through the list and explicitly install everything important...
Still I personally would prefer sorting through the -Qdt output before removing everything.
Offline
Oh, a word of caution. That one liner I posted here uninstalled the font I was using in xterm and and anyone using it might want to check the files listed by pacman -Qdt or pacman -Qdtq before you uninstall them.
Last edited by Hilariousity (2010-05-22 16:01:32)
Offline
It once proposed me to remove iniscripts. It was the funniest joke arch could give me
Offline
I quite like this:
% LC_ALL=C pacman -Qi kernel26
Name : kernel26
Version : 2.6.33.4-1
URL : http://www.kernel.org
Licenses : GPL2
Groups : base
Provides : None
Depends On : coreutils kernel26-firmware>=2.6.33 module-init-tools mkinitcpio>=0.5.20
Optional Deps : crda: to set the correct wireless channels of your country
Required By : NoneNote the None in the required line..![]()
Ogion
Last edited by Ogion (2010-05-22 16:24:16)
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
@Ogion yes because you don't have any external module that depend of it. Also you omitted the most important part.
Install Reason : Explicitly installedGive what you have. To someone, it may be better than you dare to think.
Offline
Yea true, wonder. I still like it ![]()
Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline