Although not recommended, some rpm packages can be installed in alternative directories to the standard root directory /. One can check for this using,
$ rpm -qpi package.rpm|head -n
Where n is the number of lines to see the answer (depends on the distro).
Two questions:
1) urpmi supports installation in alternative directories?
2) Are there relocatable rpm packages in Mageia?
The latter question arises because there seems to be a distro policy to have or not relocatable packages:
As an example, in RHEL the package rsync seems to be relocatable:
# rpm -qpi rsync-2.5.7-5.3E.i386.rpm | head -1
Name : rsync Relocations: /usr
see https://www.thegeekdiary.com/how-to-ins ... el-fedora/
However, in Mageia 7.1 it is not:
- Code: Select all
$ rpm -qpi ~/Downloads/rsync-3.1.3-4.mga7.x86_64.rpm |head -13
Name : rsync
Version : 3.1.3
Release : 4.mga7
Architecture: x86_64
Install Date: (not installed)
Group : Networking/File transfer
Size : 953238
License : GPLv3+
Signature : RSA/SHA256, ter 25 fev 2020 17:45:16 -03, Key ID b742fa8b80420f66
Source RPM : rsync-3.1.3-4.mga7.src.rpm
Build Date : ter 25 fev 2020 17:44:16 -03
Build Host : localhost
[b]Relocations : (not relocatable)[/b]