You are not logged in.

#1 2013-01-12 02:11:47

scorici
Member
Registered: 2012-02-06
Posts: 19

pacman asks for root passwork for -w option (download only)

I find this behavior odd.
It would make sense if the package would be downloaded in the cache dir (/var/cache/pacman/pkg) where root permission is required but I ran the command like this:

$ pacman -Sw gnuchess --cachedir $HOME
error: you cannot perform this operation unless you are root.

Maybe because I dual boot mint with arch and I'm used to aptitude / apt-get, which does not requires to be root for just downloading packages:

$ apt-get download gnuchess
Get:1 Downloading gnuchess 5.07-7 [93.6 kB]
Fetched 93.6 kB in 0s (290 kB/s)
$ aptitude download gnuchess-book
Get: 1 http://archive.ubuntu.com/ubuntu/ precise/universe gnuchess-book all 1.01-2 [2,591 kB]
Fetched 2,591 kB in 1s (1,419 kB/s)

Is this pacman behavior normal, for security reasons or something?... Because I simply don't get it.

Offline

#2 2013-01-12 02:18:12

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

Re: pacman asks for root passwork for -w option (download only)

Hmm...  we could probably check if the download folder is writable if doing only -Sw.  File a bug report.

Offline

#3 2013-01-12 03:11:27

scorici
Member
Registered: 2012-02-06
Posts: 19

Re: pacman asks for root passwork for -w option (download only)

Bug filed here.

Offline

Board footer

Powered by FluxBB