You are not logged in.

#1 2008-10-20 23:17:24

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Remove unused dependencies

Is it possible to remove all the dependencies on my machine that are no longer needed?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2008-10-20 23:54:42

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Remove unused dependencies

pacman -Qdt

Will list all orphans.

pacman -Rsn $(pacman -Qdtq)

will remove them all.

But, think, and read the manual beforehand. wink

Offline

#3 2008-10-20 23:57:45

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Remove unused dependencies

Here's what it gives. Some of them I should definitely keep, like zip and unrar.
I thought this list would be way bigger.

libsexy? WTF?

[root@duncan-arch duncan]# pacman -Qdt
a2ps 4.13c-1
agg 2.5-2
archlinux-menus 2.1-2
bigreqsproto 1.0.2-1
boost 1.36.0-2
cyrus-sasl 2.1.22-9
dbh 1.0.24-2
ffmpegthumbnailer 1.3.0-1
gtk-doc 1.10-1
hspell 1.0-2
lib32-gtk2 2.12.11-3
lib32-libstdc++5 3.3.6-3
lib32-libxdamage 1.1.1-1
lib32-libxmu 1.0.4-1
lib32-pcre 7.8-1
libdc1394 2.0.1-1
libdca 0.0.5-1
libmpd 0.15.0-1
libsexy 0.1.11-1
mtools 3.9.11-1
opencdk 0.6.6-1
pstoedit 3.45-2
python-elementtree 1.2.6_20050316-1
ttf-dejavu 2.26-1
unrar 3.8.3-1
wxgtk-2.6 2.6.4-2
xalan-java 2.7.1-2
zip 3.0-1
[root@duncan-arch duncan]#

Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#4 2008-10-20 23:58:21

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Remove unused dependencies

http://wiki.archlinux.org/index.php/Pacman#Other_Usage :: Second quote from the end.

Also, to prevent orphans from piling up in the first place, pass the -s (aka --recursive) switch to pacman when removing packages.

Offline

#5 2017-06-12 20:47:30

kaifis
Member
Registered: 2016-12-22
Posts: 58

Re: Remove unused dependencies

[deleted]

Last edited by kaifis (2017-06-12 20:48:28)

Offline

#6 2017-06-12 20:50:41

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Remove unused dependencies

kaifis wrote:

[deleted]

please don't do that

Offline

#7 2017-06-12 22:30:57

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Remove unused dependencies

2ManyDogs wrote:
kaifis wrote:

[deleted]

please don't do that


Maybe he realized that this was a necrobump and tried to undo it.

Closing...


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB