LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-12-2008, 01:02 PM   #1
nanosec
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
Pls help to explain this syntax. "rpm -ivh bash.rpm --root /mnt/image --replacepkgs"


Pls help to explain this syntax. "rpm -ivh bash.rpm --root /mnt/image --replacepkgs" I don't understand that bash.rpm is install at path /mnt/image. That' right.

Please, help me to clarify.

Thanks
 
Old 08-12-2008, 01:20 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
--root option:

Code:
       --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.
 
Old 08-12-2008, 01:37 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
nanosec,

Most linux commands have help built-in if you are unsure about the syntax or meaning.

trickykid's a linux guru, but I think he just copied & pasted from man rpm. You can do this for yourself

The command you need to learn is man

The command you are looking for help with is rpm

So try man rpm in a terminal. Then Page Up / Page Down and q to quit the man pages utility and get back to the prompt.

I just tried this on my PC:
Code:
tred@vaio:~$ man rpm
No manual entry for rpm
tred@vaio:~$
But I do not use rpm as I have a debian-based system, which does not use rpm.

man man is a good introduction.

Anyway, just try it.
 
  


Reply



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
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 07:46 PM
Difference Between "Source RPM" "Static RPM" Mic Q SUSE / openSUSE 2 03-30-2005 06:51 PM
rpm -q claims "installed" but rpm -ivh claims "already installed" topgunjones Linux - Software 3 01-29-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:02 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
Open Source Consulting | Domain Registration