LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2004, 08:35 PM   #1
sanjaya
Member
 
Registered: Feb 2004
Location: sri lanka
Posts: 47

Rep: Reputation: 15
rpm command not working


i use the following rpm command to convert a tar.gz file in to a


rpm -ta slmdm-2.X.X.tar.gz


but this says option not found and i append below the instructions given in the smart link USB modem driver installation read me file




1. Build SRPM and RPM from tar.gz package:

In order to build RPM and SRPM run command:

# rpm -ta slmdm-2.X.X.tar.gz

It will build in your RPM directory:
- slmdm-2.X.X-Y.src.rpm - Source SRPM package
- slmdm-2.X.X-Y.i386.rpm - Core Modem RPM package
- slmdm-amr-2.X.X-Y.i386.rpm - AMR/CNR/PCI Modem driver
- slmdm-usb-2.X.X-Y.i386.rpm - USB Modem driver

2. Install

To install Modem core package run:

# rpm -i /path/to/slmdm-2.X.X-Y.i386.rpm

To install Modem hw driver run:

# rpm -i /path/to/slmdm-amr-2.X.X-Y.i386.rpm

if you are going to use AMR/CNR/PCI Modem, or

# rpm -i /path/to/slmdm-usb-2.X.X-Y.i386.rpm

if you are going to use SmartUSB56 Modem.

Note: currently you cannot install and use both AMR/CNR/PCI and USB Modems.



what is wrong with this
 
Old 02-19-2004, 08:47 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
i assume it is complaining about the -t
so try :
rpm -a --tarbuild filename.tar.gz
 
Old 02-20-2004, 12:52 AM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
first off, not all tarballs have the rpm spec for you to build rpms from tarballs. so just to let you know, you won't always be able to build rpms from tarballs. anyway, if that's the readme file, then it looks like this particular package will let you build an rpm from the tarball. my only guess is that you're not running the command as root since by default that command will place the output into /usr/src where only root has write access to.
 
Old 02-20-2004, 12:55 AM   #4
sanjaya
Member
 
Registered: Feb 2004
Location: sri lanka
Posts: 47

Original Poster
Rep: Reputation: 15
do i have to sign in as root and copy this file in to /usr/src to run this command ?
 
Old 02-20-2004, 12:56 AM   #5
sanjaya
Member
 
Registered: Feb 2004
Location: sri lanka
Posts: 47

Original Poster
Rep: Reputation: 15
thanks megaspaz my xine player is now working
 
Old 02-20-2004, 01:00 AM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by sanjaya
do i have to sign in as root and copy this file in to /usr/src to run this command ?
no. you just have to su into root and run the command with the right file path/name.

if you're in your home directory (/home/sanjaya) and you're tarball is in there. just su into root and use the rpm command:

rpm -ta slmdm-2.X.X.tar.gz

you do not need to move the tarball into /usr/src.
 
Old 02-20-2004, 01:05 AM   #7
sanjaya
Member
 
Registered: Feb 2004
Location: sri lanka
Posts: 47

Original Poster
Rep: Reputation: 15
are you sure the rpm -ta xxxxxxx ( the ta option ) will work in my red hat linux 9
 
Old 02-20-2004, 01:08 AM   #8
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by sanjaya
are you sure the rpm -ta xxxxxxx ( the ta option ) will work in my red hat linux 9
actually, i'm not 100% sure as i'm using redhat 7.3 in which if the tarball has the rpm spec file included, that rpm -ta command will work. i don't know about rh 9.0, although i'd find it hard to believe that they would cripple rpm in that way.
 
  


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
How can I get the rpm command and rpm build command on my Debian box? abefroman Debian 6 11-28-2005 12:38 PM
java .rpm chmod command not working! barabus Linux - Software 11 06-06-2005 01:52 AM
rpm -bp command not working says "-bp: unknown option" Niceman2005 Linux - Software 2 11-08-2004 01:36 AM
rpm -q command praveenv Linux - Newbie 2 09-08-2004 04:41 AM
rpm command loganwva Linux - General 3 03-13-2002 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 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