You are not logged in.

#1 2010-06-21 18:01:42

shak
Member
Registered: 2009-03-16
Posts: 405

general question about packages after the -Rs removal

Hi !

This is more of curiosity question . I was always wondering after i perform the command pacman -Rs package and then i try to install it again the downloaded size is 0 kb

Meaning that the file is already stored on my hard drive . How can those packages be removed from my hard disk ?

Offline

#2 2010-06-21 18:14:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: general question about packages after the -Rs removal

man pacman, look for 'cache'.

Offline

#3 2010-06-21 18:37:33

shak
Member
Registered: 2009-03-16
Posts: 405

Re: general question about packages after the -Rs removal

OK thanks for your help . The only relevant command i found is pacman with the  -n option , nosave. Is this the one ?

Last edited by shak (2010-06-21 18:40:08)

Offline

#4 2010-06-21 18:44:59

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: general question about packages after the -Rs removal

shak wrote:

OK thanks for your help . The only relevant command i found is pacman with the  -n option , nosave. Is this the one ?

No. the nosave option is for config files that would be saved as .pacnew if the option was not passed in.

What you need is

sudo pacman -Sc

This will clean your cache and remove all the packages that are NOT installed on your system.

If you want to remove every package from the cache then pass in an extra -c option

sudo pacman -Scc

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2010-06-21 18:45:17

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: general question about packages after the -Rs removal

Read man page again. Hint '--clean'

Offline

#6 2010-06-21 19:04:58

shak
Member
Registered: 2009-03-16
Posts: 405

Re: general question about packages after the -Rs removal

ok thanks again

Offline

Board footer

Powered by FluxBB