LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm question... (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-question-44747/)

jmourik 02-09-2003 08:58 PM

rpm question...
 
While upgrading my kernel from 2.4.18-14 to 2.4.18.19 I had to remove and reinstall a couple of Nvidia rpms. I was having problems with the last one I did. I had a src rpm and a binary rpm. So I first tried to install the binary rpm like this:

> rpm -i NVIDIA_nforce-1.0-0248.rh80up_2.4.18_17.athlon.rpm

but it didn't really work. After reboot it was all gone??

So I installed the src rpm instead:

> rpm -i NVIDIA_nforce-1.0-0248.src.rpm
> cd /usr/src/redhat/SPECS
> rpm -bb nforce.spec
> cd /usr/src/redhat/RPMS/i386/
> rpm -Uvh NVIDIA_nforce-1.0-0248.i386.rpm

and bingo, it's all good...

I thought the forst one should have worked because it's a binary rpm? What happened, what did I miss there?

Thanks for any info, jan
:newbie:

PS. This is to get the nvnet driver installed for my nvidia ethernet on my mobo Asus A7N266.

Nu-Bee 02-09-2003 10:32 PM

Re: rpm question...
 
Quote:

While upgrading my kernel from 2.4.18-14 to 2.4.18.19 I had to remove and reinstall a couple of Nvidia rpms. I was having problems with the last one I did. I had a src rpm and a binary rpm. So I first tried to install the binary rpm like this:

> rpm -i NVIDIA_nforce-1.0-0248.rh80up_2.4.18_17.athlon.rpm

but it didn't really work. After reboot it was all gone??
If you already have something then you probaaly needed to UPGRADE it like this:

rpm -Uvh NVIDIA_nforce-1.0-0248.rh80up_2.4.18_17.athlon.rpm



Quote:

Originally posted by jmourik
> rpm -i NVIDIA_nforce-1.0-0248.src.rpm
Hmmm?...are things different on Red Hat?

I thought source RPM's were installed thusly:

Quote:

rpm --rebuild|--recompile NVIDIA_nforce-1.0-0248.src.rpm
From the man rpm:

Quote:

BUILDING PACKAGES:
rpm {-ba|-bb|-bp|-bc|-bi|-bl|-bs} [build-options] SPECFILE ...

rpm {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [build-options] TARBALL ...

rpm {--rebuild|--recompile} SOURCEPKG ...


<clip>


REBUILD AND RECOMPILE OPTIONS
There are two other ways to invoke building with rpm:

rpm {--rebuild|--recompile} SOURCEPKG ...

When invoked this way, rpm installs the named source package, and does a prep, compile and install. In addition, --rebuild builds a new binary package. When the build has completed, the build directory is removed (as in --clean) and the the sources and spec file for the package are removed.

nakkaya 02-09-2003 10:56 PM

did you try rpm -ivh


All times are GMT -5. The time now is 01:59 PM.