You are not logged in.

#1 2010-12-06 04:11:15

Ryujin
Forum Fellow
From: Centerville, Utah
Registered: 2005-05-12
Posts: 246
Website

[Solved] pacman non-root package download

pacman -Sw <package name>

Wants me to be root, is there a simple way to download packages as an ordinary user?
The port of libguestfs to Arch requires it...

Also, I am curious, why would pacman -Sw need to lock the package database?

Last edited by Ryujin (2010-12-06 05:23:54)

Offline

#2 2010-12-06 05:03:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] pacman non-root package download

/var/cache/pacman/pkg/ has root only write permissions by default so you need to be root to write there...   You could change the permissions, use "pacman -Sp" and then download using an external downloader.

Locking the package database prevents multiple libalpm frontends attempting to download a package file at the same time which would cause issues.  Note it locks the package database as that is currently the only lock point...  there is a bug report about locking the package cache as well/instead.

Offline

#3 2010-12-06 05:23:39

Ryujin
Forum Fellow
From: Centerville, Utah
Registered: 2005-05-12
Posts: 246
Website

Re: [Solved] pacman non-root package download

Thanks Allan, thats what I needed, I was looking for something that did pacman -Sp, I must have missed it in the manpage.

And thank you for satisfying my curiosity smile

Offline

Board footer

Powered by FluxBB