You are not logged in.

#1 2008-08-11 22:45:39

NoOrdinary
Member
Registered: 2008-08-08
Posts: 6

[SOLVED] pacman "--depclean" like command

Hi

I'm new to Arch and I find pacman really easy and powerful to use, tho there is one thing that's bothering me and can't find answer on wiki or on forum (could be I'm just searching wrong keys).
I'm used to gentoo, where sooner or later portage forgot to clean some deps and they stayed somewhere on hdd, so it had --depclean switch, that checked every package on system and cleaned all that were not installed by user or are dependency.
man pacman told me pacman handle removing unneeded deps with -Rs, but what if you remove some package without s and deps stay installed. Is there any way to check everything installed and remove what's not needed anymore?

Last edited by NoOrdinary (2008-08-11 23:00:00)

Offline

#2 2008-08-11 22:47:24

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] pacman "--depclean" like command

man pacman if you are not lazy

pacman -Qtd if you are lazy


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2008-08-11 22:59:25

NoOrdinary
Member
Registered: 2008-08-08
Posts: 6

Re: [SOLVED] pacman "--depclean" like command

Oh thanks, was too focused on sync options didn't even think about query neutral Well it doesn't hurt to have this stored for newbies behind me searching same answer smile

Offline

#4 2008-08-11 23:09:43

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: [SOLVED] pacman "--depclean" like command

bad NoOrdinary! bad! smile
BTW i like your "Registered" date; it looks cool.

Last edited by pelle.k (2008-08-11 23:10:22)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#5 2008-08-11 23:12:30

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] pacman "--depclean" like command

pelle.k wrote:

bad NoOrdinary! bad! smile
BTW i like your "Registered" date; it looks cool.

Ah yeah, like the olympic games!


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB