LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rpm command not working (https://www.linuxquestions.org/questions/linux-software-2/rpm-command-not-working-148232/)

sanjaya 02-19-2004 08:35 PM

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

DrOzz 02-19-2004 08:47 PM

i assume it is complaining about the -t
so try :
rpm -a --tarbuild filename.tar.gz

megaspaz 02-20-2004 12:52 AM

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.

sanjaya 02-20-2004 12:55 AM

do i have to sign in as root and copy this file in to /usr/src to run this command ?

sanjaya 02-20-2004 12:56 AM

thanks megaspaz my xine player is now working

megaspaz 02-20-2004 01:00 AM

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.

sanjaya 02-20-2004 01:05 AM

are you sure the rpm -ta xxxxxxx ( the ta option ) will work in my red hat linux 9

megaspaz 02-20-2004 01:08 AM

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.


All times are GMT -5. The time now is 12:25 PM.