LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Understanding RPM? (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-rpm-109837/)

EpicLinux 10-29-2003 05:45 AM

Understanding RPM?
 
Right as a few of you might no im having all end of problems with my network card driver on Redhat 9, so iv gone looking for the latest Linux driver for my card and have come up with this:

Using the Source RPM Package
The updated drivers are best installed by using the source RPM to create a custom binary RPM with kernel modules for your system:
ftp://ftp.scyld.com/pub/network/netd...-3.1-1.src.rpm

Use the following commands to install and test the driver pack:

# Transfer the Scyld PCI Netdriver package
# Perhaps use ncftpget ftp://ftp.scyld.com/pub/network/netd...-3.1-1.src.rpm
rpm -i ftp://ftp.scyld.com/pub/network/netd...-3.1-1.src.rpm
# Build the binary version for your kernel
cd /usr/src/{redhat,TurboLinux,packages}/
rpm -bb SPECS/netdriver*.spec
# Now install it your newly built package.
rpm -i --force RPMS/i386/netdrivers-3.1-1.i386.rpm

The --force option is needed because the new drivers may conflict with the existing drivers installed by the kernel package. If this occurs you will see a warning message for each driver that has been updated.


Untill my network card is installed i dont have the net, so how do i run this thing?

acid_kewpie 10-29-2003 07:35 AM

I don't understand your question... you have even pasted in a step by step guide on installing the drivers, yet haven't read it?? :confused: are you having problems with a particular step of that procedure?

Shachaf 10-29-2003 10:45 AM

You should somehow get the RPM on a floppy, and follow the instructions from there (rpm -i /mnt/floppy/netdrivers-3.1-1.src.rpm).

EpicLinux 10-29-2003 11:34 AM

right, well there link dont work and the only files i can get hold of are .c files, how do i install them and how do i know what files i need?

Starchild 10-29-2003 02:35 PM

Quote:

Originally posted by EpicLinux
right, well there link dont work and the only files i can get hold of are .c files, how do i install them and how do i know what files i need?
C source files?

A very simple program could probably just be compiled 'gcc file.c -o file'
Where you'd put the compiled stuff after that, I really couldn't help with.

A more complex program would have (a) Makefile(s)
usually invoked 'make' or 'make -f Makefile'

Is there a configure script somewhere ?
run it before running make.

usually you'd do 'make install' to install. Of course, there is usually an INSTALL text file that's recommended reading before trying to install ;).


All times are GMT -5. The time now is 12:40 AM.