You are not logged in.

#1 2009-03-31 15:13:05

cnshzj007
Member
From: Shanghai, China
Registered: 2008-03-18
Posts: 44
Website

How to combi pacman -Qdt and pacman -Rs

I just want to use the output list from

pacman -Qdt

as the parameters of

pacman -Rs

For example, A list below comes from pacman -Qdt. A\B\C stand for any name of software package.
A
B
C

Then, pacman -Rs A B C.

How to combi, or How to link?

Any Help ?:D

Offline

#2 2009-03-31 15:19:59

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: How to combi pacman -Qdt and pacman -Rs

pacman -Rs $(pacman -Qdt)

Last edited by DonVla (2009-03-31 15:20:26)

Offline

#3 2009-03-31 15:21:19

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: How to combi pacman -Qdt and pacman -Rs

You probably need to use -Qqdt, as the hides the version number.s

Offline

#4 2009-03-31 15:21:28

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: How to combi pacman -Qdt and pacman -Rs

pacman -Rs $(pacman -Qqdt)

but... it's not very safe
read: http://bbs.archlinux.org/viewtopic.php?id=62553

Offline

#5 2009-04-01 01:38:52

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: How to combi pacman -Qdt and pacman -Rs

you can use yaourt also, after a Qdt it asks you if you want to remove the packages with Rcs


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

#6 2009-04-01 14:33:43

cnshzj007
Member
From: Shanghai, China
Registered: 2008-03-18
Posts: 44
Website

Re: How to combi pacman -Qdt and pacman -Rs

Thanks a lot. And I find a Chinese guy from Nanjing, which is a surprise.

Offline

#7 2009-04-01 14:46:58

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How to combi pacman -Qdt and pacman -Rs

You probably don't want to do it like that. Often a package is 'orphan' but you still want/need it.
Eg on my box, it lists svn, cvs, pmount, xorg-utils and more, and I use those a lot...


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2009-04-01 18:11:51

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: How to combi pacman -Qdt and pacman -Rs

Mr.Elendig wrote:

You probably don't want to do it like that. Often a package is 'orphan' but you still want/need it.
Eg on my box, it lists svn, cvs, pmount, xorg-utils and more, and I use those a lot...

same here:

takedown [~] \ $  pacman -Qqdt
aalib
asio
automoc4
cmake
cvs
dirmngr
fltk
gperf
gtk
intltool
libssh2
libxtrap
mime-types
nasm
nss-mdns
pinentry
python-numeric
termcap-compat
xtrans

Offline

#9 2009-04-01 19:14:39

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: How to combi pacman -Qdt and pacman -Rs

Mr.Elendig wrote:

You probably don't want to do it like that. Often a package is 'orphan' but you still want/need it.
Eg on my box, it lists svn, cvs, pmount, xorg-utils and more, and I use those a lot...

i find metapax (http://aur.archlinux.org/packages.php?ID=19240) very useful for that. i put all 'orphaned' packages in one metapackage.
or you can re-install them explicitly.

Offline

Board footer

Powered by FluxBB