|
Hi,
my conclusion is that yum launched by simple user is simply not permitted custom in the code, please demonstrate that I'm wrong:
I create a yum.conf and yum.repos.d in simple user local area, I create the log and cache file as yum.conf requires in simple user local area. I build an adhoc rpm that want to be installed in a simple user owned path. I fill the yum.conf with the new repo, cache and log dir.
I launch yum in the following way:
1747[fella@lapfella:~/rpm]$ yum localinstall fake-1.1.0-1.noarch.rpm --installroot /home/fella/test_install_dir/ --noplugins -c /home/fella/yum.conf -e 10 -d 10 -v
Config time: 0.022
Yum Version: 3.2.21
COMMAND: yum localinstall fake-1.1.0-1.noarch.rpm --installroot /home/fella/test_install_dir/ --noplugins -c /home/fella/yum.conf -e 10 -d 10 -v
Installroot: /home/fella/test_install_dir/
Ext Commands:
fake-1.1.0-1.noarch.rpm
You need to be root to perform this command.
1749[fella@lapfella:~/rpm]$
---------------------------------------------------------------------
The /home/fella/yum.conf:
1750[fella@lapfella:~]$ cat yum.conf
[main]
cachedir=/home/fella/rpm/
debuglevel=10
errorlevel=10
logfile=/home/fella/rpm/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
reposdir=/home/fella/yum.repo.d
The install root I specified was fullfill of the new rpm db and related files, the new repos are accessed.
The strace of the command doesn't contain "Permission denied" or errors or warnings related to file owned by root.
strace yum localinstall superb-sim-1.1.0-1.noarch.rpm --installroot /home/fella/test_install_dir/ --noplugins -c /home/fella/yum.conf -e 10 -d 10 -v > ~/bbbd 2>&1
I try to write the .rpmmacros file containing the installroot
It is not clear the right use of --installroot and I don't find any full explanation of the use of it: al lthe cache and a new rpmdb is created at that path?
Thanks, fella
|