You are not logged in.

#1 2007-08-07 22:45:33

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

kdemod removed from pacman.conf but not from /var/lib/pacman

Hello all smile

I have been using kdemod repository for some time.
Since I use Gnome I have removed all my kde/qt applications and I have removed kdemod repository from pacman.conf

Is it normal to still have kdemod into /var/lib/pacman ?
Can I safely remove /var/lib/pacman/kdemod (not /var/lib/pacman of course) ?
Why pacman does not remove it when syncing if no more present in pacman.conf ?
Is it a bug ? a feature ?

Thank you for your help !
Cheers,
Chicha.

Offline

#2 2007-08-08 01:14:27

veek
Member
Registered: 2006-03-10
Posts: 167

Re: kdemod removed from pacman.conf but not from /var/lib/pacman

You should be able to delete it safely smile

Also I don't think it's a bug.
Sometimes people temporarily comment out a repository, and it wouldn't make
sense to wipe out the entire repo and have to redownload it again when
they reactivate the repo.

Maybe there should be an option to permanently remove a repo from the local pacman database,
but you can just delete the folder anyway so it's probably not worth it.

Offline

#3 2007-08-08 07:13:02

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: kdemod removed from pacman.conf but not from /var/lib/pacman

Ok, its fine !

Thank you very much veek smile
Chicha

Offline

#4 2007-08-08 07:55:50

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

Re: kdemod removed from pacman.conf but not from /var/lib/pacman

veek wrote:

You should be able to delete it safely smile

Also I don't think it's a bug.
Sometimes people temporarily comment out a repository, and it wouldn't make
sense to wipe out the entire repo and have to redownload it again when
they reactivate the repo.

I think this has little interest, since the repo will be downloaded again on next -Sy anyway.
It's probably neither a bug, nor a feature, rather the lack of a feature, because checking that
some folders in /var/lib/pacman/ doesn't match a section in pacman.conf would require extra code.

But I suppose it's also generally safer to not remove anything. How do you make the distinction between
an old repo that has been disabled, and another random directory ?
For example, I could have made a backup of local there, for my own reasons :
cd /var/lib/pacman/ && cp -r local local-bak

In any cases, it's easy to clean manually wink
I just recently deleted two old repos I had left there..


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

Offline

#5 2007-08-08 15:20:12

veek
Member
Registered: 2006-03-10
Posts: 167

Re: kdemod removed from pacman.conf but not from /var/lib/pacman

shining wrote:

I think this has little interest, since the repo will be downloaded again on next -Sy anyway.
It's probably neither a bug, nor a feature, rather the lack of a feature, because checking that
some folders in /var/lib/pacman/ doesn't match a section in pacman.conf would require extra code.

Ooops I thought I checked for this hehe.

Are you sure pacman downloads the whole database everytime?
I just did an update:


yaourt -Sy
:: Synchronizing package databases...
 testing is up to date
 current is up to date
 extra                    270.5K  299.4K/s 00:00:01 [##################################################] 100%
 community                291.4K  302.8K/s 00:00:01 [################################################] 100%
 compiz-fusion is up to date
 local database is up to date

If a repo is uptodate it doesn't download the database, so pacman must check that somehow.
Also, it show that to sync extra, 270.5K was transferred, is that the entire extra repo?

When I check the size of /var/lib/pacman/extra it's 5.7 Megs. Maybe the repo is compressed,
transferred, and then decompressed on each sync.

If that's the case, as you say my argument doesn't hold much water smile

Offline

#6 2007-08-08 15:35:51

Pierluigi
Member
Registered: 2004-04-10
Posts: 90
Website

Re: kdemod removed from pacman.conf but not from /var/lib/pacman

veek wrote:

Also, it show that to sync extra, 270.5K was transferred, is that the entire extra repo?

yes it is. the repo's db is stored in a tar.gz file.

Offline

#7 2007-08-08 15:47:42

veek
Member
Registered: 2006-03-10
Posts: 167

Re: kdemod removed from pacman.conf but not from /var/lib/pacman

Pierluigi wrote:
veek wrote:

Also, it show that to sync extra, 270.5K was transferred, is that the entire extra repo?

yes it is. the repo's db is stored in a tar.gz file.

Ah I thought that may be, but I wasn't certain; thanks for clearing it up.

Offline

Board footer

Powered by FluxBB