LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2014, 10:31 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Rep: Reputation: 1
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?
 
Old 12-07-2014, 12:28 PM   #2
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 297

Rep: Reputation: 62
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.
 
Old 12-07-2014, 02:24 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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!!!!!!
 
Old 12-07-2014, 10:36 PM   #4
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by John VV View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help to explain this syntax. "rpm -ivh bash.rpm --root /mnt/image --replacepkgs" nanosec Linux - Newbie 2 08-12-2008 02:37 PM
rpm freezes up while installing as root timberwolf Linux - Software 4 12-07-2003 06:18 PM
How do i install a rpm not being root? Hano Linux - Software 7 09-10-2003 06:28 AM
gcc and rpm not found as root jarin scott Linux - Software 4 07-27-2003 02:18 PM
rpm broken for root? ubien Linux - General 1 01-23-2003 02:07 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration