Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-12-2008, 01:02 PM   #1
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.

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

Rep: Reputation: 235Reputation: 235Reputation: 235
--root option:

       --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
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407

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:
tred@vaio:~$ man rpm
No manual entry for rpm
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.


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
"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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 AM.

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