You are not logged in.
Hello all
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
You should be able to delete it safely
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
Ok, its fine !
Thank you very much veek
Chicha
Offline
You should be able to delete it safely
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
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
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
Offline
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
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