LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   a question on rpm --root (https://www.linuxquestions.org/questions/linux-newbie-8/a-question-on-rpm-root-4175527590/)

sryzdn 12-07-2014 09:31 AM

a question on rpm --root
 
Hi, I have a quetion on --root option used for rpm.

Quote:

rpm --root dir
Does this option guide the rpm to look at "dir" to find the dependencies?

How could it be used to discrete one linux installation from another?

fpmurphy 12-07-2014 11:28 AM

Quote:

--root DIRECTORY
Use the file system tree rooted at DIRECTORY for all operations.
Note that this means the database within DIRECTORY will be used
for dependency checks and any scriptlet(s) (e.g. %post if
installing, or %prep if building, a package) will be run after a
chroot(2) to DIRECTORY.
AFAIK, it cannot.

John VV 12-07-2014 01:24 PM

have you read the "rpm" manual page ?
Code:


man rpm

also unless YOU MUST!!!!! use rpm

as in yum or zypper are broken
use YUM OR ZYPPER to install a rpm!!!!!!

sryzdn 12-07-2014 09:36 PM

Quote:

Originally Posted by John VV (Post 5280968)
have you read the "rpm" manual page ?

yes I have. The man page seems to say that we redirect rpm to search "dir" for the dependencies. Is that right?

Also, I have read somewhere else that "rpm --root dir" can discrete one linux installation from another.

I do use yum a lot, but I was learning some points about rpm that the points above confused me.


All times are GMT -5. The time now is 11:55 AM.