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 06-22-2003, 04:57 AM   #1
warheros
Member
 
Registered: Jun 2003
Location: mason, mi, usa
Distribution: rh9
Posts: 87

Rep: Reputation: 15
command line question...


when it says (to install a modem driver) to type:

Code:
rpm -i hcfpcimodem-{version}.{arch}.rm
do i actually type that? or am i supposed to put something else in where it says {version} & {arch}? because it's not working...
 
Old 06-22-2003, 05:00 AM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Take a look at the rm file you're trying to install and just use that filename
(ie rpm -i hcfpcimodem-53_2.arbz.rm or what have you)

Last edited by Poetics; 06-22-2003 at 05:02 AM.
 
Old 06-22-2003, 05:01 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Nah, those are variables. Your tar.gz probably has the version number (unless it means your modem version number, rather than driver version number) and your architecture is probably i386, though it may be more specific if you have, say, i586 and it actually wants i586. i386 is both a specific and a general that means "i386 and up".

edit - Too slow and not paying attention. Yeah, rpm (yuck), not tar.gz. *g*

Last edited by slakmagik; 06-22-2003 at 05:03 AM.
 
Old 06-22-2003, 05:06 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
And to make your life easier, use TAB autocompletion. Unless you've got 5 or 6 different files that are very close in name, then that should work just fine. Try it:
rpm -i filenaTAB

Where TAB is when you press TAB And filena is the beginning of your filename.

Cool
 
Old 06-22-2003, 05:09 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
basically this means you presumably need to download one of a list of rpms on their site, which are for different versions and architectures. and then run
Code:
rpm -ivh thefilethatyoudeceidedtodownload
 
Old 06-22-2003, 05:09 AM   #6
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
re: Tab

Should've mentioned that. Absolutely fantastic "shortcut," if you will. I use it all the time
 
Old 06-22-2003, 08:04 AM   #7
warheros
Member
 
Registered: Jun 2003
Location: mason, mi, usa
Distribution: rh9
Posts: 87

Original Poster
Rep: Reputation: 15
well thanks for the help, but i believe it's the file, it's corrupt or incomplete or something. doesnt work. in gnome, i just double click the rpm file, it starts the setup, then it disappears like it found something it didnt like and doesnt install anything. oh well. ill figure it out sometime soon hopefully.
 
Old 06-22-2003, 08:13 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Um, open up a terminal and try typing it in as suggested above. From there you may get a usable error message that you can then, in turn, post up here for others to help you with

Cool
 
Old 06-23-2003, 05:06 AM   #9
warheros
Member
 
Registered: Jun 2003
Location: mason, mi, usa
Distribution: rh9
Posts: 87

Original Poster
Rep: Reputation: 15
i did this:

Code:
rpm -ivh /directoryoffile *.rpm
it spit this out at me:

Code:
error: read failed: Is a directory (21)
/directoryoffile: not an rpm package (or package manifest): Is a directory
 
Old 06-23-2003, 05:47 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, that means that you are not selecting the package, you need to:
rpm -ivh /directoryoffile/filename.rpm

Cool
 
Old 06-23-2003, 07:12 AM   #11
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Rep: Reputation: Disabled
To make it perhaps a little more clear:
----------------------------------------------------------------
rpm -ivh /directoryoffile *.rpm
----------------------------------------------------------------
has a blank between "/directoryoffile" and "*.rpm"
They will thus be used as two arguments for the command rpm -ivh, and since "/directoryoffile" is a directory ...

In short: leave out that blank...or rather replace with "/"
 
Old 06-23-2003, 02:01 PM   #12
warheros
Member
 
Registered: Jun 2003
Location: mason, mi, usa
Distribution: rh9
Posts: 87

Original Poster
Rep: Reputation: 15
ok, i did this:

Code:
[root:]rpm -ivh /directoryfileisin/file.rpm
it just sat there and did nothing. not even bringing up the [root:] prompt.
 
Old 06-25-2003, 04:34 AM   #13
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Rep: Reputation: Disabled
Did you check in a different terminal, whether rpm still lived (e.g. using ps or top)? With what did you get the prompt back?

Sometimes these commands are e little laconic ...
 
  


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
Command line question shadoweyez Linux - Software 2 11-18-2005 06:28 PM
useradd from command line question Strixy Linux - Newbie 4 08-05-2005 06:58 PM
Command line question satimis Linux - General 14 06-20-2005 09:46 PM
command line question phonecian Linux - Software 2 10-09-2004 08:36 AM
C++ MFC Command Line Question neozero62 Programming 8 05-10-2004 10:18 AM

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

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