LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-08-2013, 11:22 PM   #1
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Rep: Reputation: Disabled
not able to install via rpm in command line


Hi All,

I am trying to install a package using RPM in command line and I am facing some issue.

IN RC5 - I am able to see the ISO image file which is mounted on /media. I am able to open the Packages folder and install pakages just by double clicking it.

IN RC3 - I am able to see the ISO image mounted in /media. After I CD into the iso image folder and list the files and fodlers in it,nothing lists out. It looks like a empty folder.

So in GUI I can see the contents in the ISO image in the terminal. but not in CLI.

Let me know what to do.
 
Old 04-09-2013, 12:04 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
for starters if you are needing to install a foo.rpm file use yum instead.

Code:
# yum install foo.rpm
second of all, in order to find exactly were something is mounted, and I am guessing you mean RHE3 when you say RC3, there was no automagical mount in RHE3. that did not come about until late RHE4 and early RHE5.

run:

Code:
df -Th
as either user or root to see exactly were you have things mounted. from there you can ls -l, thats a lower case L, not a one, to LIST the files in that location.
 
Old 04-09-2013, 12:42 AM   #3
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Original Poster
Rep: Reputation: Disabled
No I meant Run Level 3.

I want to understand why the ISO image is not listing out any files in CLI if it can do it in GUI

Last edited by thirstonlinux; 04-09-2013 at 12:44 AM.
 
Old 04-09-2013, 03:22 AM   #4
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 344
Blog Entries: 4

Rep: Reputation: 63
rpm -ql

should list out the files
 
Old 04-09-2013, 08:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,294

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
In runlevel 5, I think it automounts an iso for you.
At runlevel 3, use this https://code.google.com/p/iredmail/w...Yum_Repository.

By the way, which distro+version is this?
 
Old 04-09-2013, 09:21 AM   #6
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 520

Rep: Reputation: 140Reputation: 140
if you just want to install rpm, then why not mount ISO manually

Code:
# mount -o loop filename.iso /media/location
 
Old 04-09-2013, 04:33 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by thirstonlinux View Post
No I meant Run Level 3.

I want to understand why the ISO image is not listing out any files in CLI if it can do it in GUI
ok runlevel is not the same as RC...

from the command line again you need to manually mount the iso as a loopback device.

Code:
# mkdir /mnt/ISO
# mount -o loop /path/to/filename.iso /mnt/ISO
then you can navigate to /mnt/ISO and view all of the files/directories in the ISO.
 
  


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
FC10 command line install using RPM, can't find dependences MrUmunhum Fedora 6 04-08-2009 01:52 PM
how to install redhat rpm from command line. droodle Linux - Newbie 4 07-26-2005 06:00 AM
Can I install an RPM without command line? akilhoffer Linux - Newbie 13 09-06-2004 09:23 PM
What is the correct command line sytax to install an rpm on mandrake 10? Stevetgn Linux - Newbie 3 07-14-2004 09:48 AM
How do you install .rpm by command line (RH9.0) Thaidog Linux - Newbie 5 05-18-2004 05:28 AM


All times are GMT -5. The time now is 02:11 PM.

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