You are not logged in.

#1 2010-08-25 15:49:15

YellowSnowIsBad
Member
From: /dev/null
Registered: 2010-06-11
Posts: 46

Remove unused dependencies/libraries.

Is there an easy way to do this? with apt it was apt-get autoremove.

Offline

#2 2010-08-25 15:54:31

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Remove unused dependencies/libraries.

pacman -Rs $(pacman -Qdtq)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-08-25 15:56:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Remove unused dependencies/libraries.

http://distrowatch.com/dwres.php?resour … management

pacman -Rns $(pacman -Qqdt)

but be careful with it, better first check what 'pacman -Qqdt' believes is unneeded.

Offline

#4 2010-08-25 15:57:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Remove unused dependencies/libraries.

karol wrote:

http://distrowatch.com/dwres.php?resour … management

pacman -Rns $(pacman -Qqdt)

but be careful with it, better first check what 'pacman -Qqdt' believes is unneeded.


better here: http://wiki.archlinux.org/index.php/Pacman_Rosetta


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-08-25 16:08:25

YellowSnowIsBad
Member
From: /dev/null
Registered: 2010-06-11
Posts: 46

Re: Remove unused dependencies/libraries.

thanks for the links, they are very useful.


pacman -qdt

boost 1.43.0-1
gnokii 0.6.29-1
gnome-keyring 2.30.3-2
liboil 0.3.17-1
networkmanager 0.8.1-1
opencv 2.1.0-1
perl-html-parser 3.66-1
perl-uri 1.54-1
pilot-link 0.12.5-1
qscintilla 2.4.4-2
vlc 1.1.3-1

most of those i don't use, but a couple i do. vlc for example, is a package, not a dependency. is there a more accurate way so i can include it in a shellscript without worrying that packages will be removed?

the only reason i ask is because doing it manually with a large list could take a while.

thanks.

Last edited by YellowSnowIsBad (2010-08-25 16:08:44)

Offline

#6 2010-08-25 16:10:32

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Remove unused dependencies/libraries.

install vlc as explicit. pacman -S vlc --asexplicit


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2010-08-25 16:15:00

YellowSnowIsBad
Member
From: /dev/null
Registered: 2010-06-11
Posts: 46

Re: Remove unused dependencies/libraries.

wonder wrote:

install vlc as explicit. pacman -S vlc --asexplicit


Thanks, what does it do specifically? i google, but nothing useful.

Offline

#8 2010-08-25 16:16:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Remove unused dependencies/libraries.

YellowSnowIsBad wrote:
wonder wrote:

install vlc as explicit. pacman -S vlc --asexplicit


Thanks, what does it do specifically? i google, but nothing useful.

I suggest 'man pacman' instead of googling.

Offline

#9 2010-08-25 16:19:29

YellowSnowIsBad
Member
From: /dev/null
Registered: 2010-06-11
Posts: 46

Re: Remove unused dependencies/libraries.

ok thanks, that was obvious. (:

Offline

#10 2010-08-25 16:30:27

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Remove unused dependencies/libraries.

karol wrote:

http://distrowatch.com/dwres.php?resour … management

pacman -Rns $(pacman -Qqdt)

but be careful with it, better first check what 'pacman -Qqdt' believes is unneeded.

It's also listed here: http://wiki.archlinux.org/index.php/Pac … procedures

pacman -Rs $(pacman -Qtdq)

Offline

Board footer

Powered by FluxBB