Inquiry:How to add a command to my Linux server?
Dear All
Can you please do me favor and let me know how can I add a command to my Red Hat 7.2 server ? Please be informed that I found that the Linux "dmidecode" command can be used to check for my Linux server mainboard type but unfortunately my server doesn't have this command as installed . Can you please let me know how can I add this "dmidecode" command to my Linux server ? Let me thank you in advance |
ftp://ftp.pbone.net/mirror/ftp.redha....2.el5.src.rpm that will get you the source rpm. then you just need to open up a terminal and type in
Code:
rpm -i ./dmidecode-2.7-1.28.2.el5.src.rpm Code:
rpmbuild -bb dmidecode.spec Code:
rpm -i dmidecode-2.7-1.28.2.i386.rpm |
Quote:
#rpm -i ./dmidecode-2.7-1.28.2.el5.src.rpm It returned no error message . Then I checked under the /usr/src/redhat/SPECS folder and tried as the followings : #rpmbuild -bb dmidecode.spec The last step will be to issue the followings : #rpm -i dmidecode-2.7-1.28.2.i386.rpm But I cannot find that *.i386.rpm package . I checked and I didn't see the dmidecode to be added to my Linux server commands set. Can you please do me favor and let me know what is wrong my case here ? Thank you in advance |
Location of i386 packages created with 'rpmbuild' :
/usr/src/redhat/RPMS/i386/ .. you can check it with the ' ls ' command : ls /usr/src/redhat/RPMS/i386/ If the package is present, then please do : # rpm -Uvh /usr/src/redhat/RPMS/i386/dmidecode-2.7-1.28.2.i386.rpm |
Quote:
Thank you in advance |
Quote:
' /home/"name"/rpms/// ', as often recommended, the command would be : rpm -Uvh /home/'name'/rpms/RPMS/<arch>/<package>.rpm http://www.linuxquestions.org/questi...6/highlight#10 ..... ..... Other commands : difficult to know, there are 2,000 up common commands + their options. And I don't use a server. It all depends, what you use, or want to use. May be have a look in the good old "Rute User's Tutorial" http://linux.2038bug.com/rute-home.html ..... |
Quote:
Thank you in advance |
http://rpm.pbone.net/
Search > "Advanced Search" → Redhat 7.x , keyword = lshw Some links ( e.g. ftp.icm.edu.pl ) still works, but slow. |
RH 7.2 (codename Enigma) went out of service/no updates many yrs ago http://en.wikipedia.org/wiki/Red_Hat_Linux.
You are going to have major problems doing stuff with it eg it won't recognise current hw and those rpms above say ...el5... which means they are for the current RHEL (RedHat Enterprise Linux) v5.x Definitely not compatible. Do yourself a favour and get a current distro eg RHEL 5.4 (paid subscription/updates/) or Centos 5.4; a free version of RHEL5.4 |
@ chrism01 , post # 9
May be the OP isn't allowed to change the server OS ? And I think it is quite clear, that the rh7.x packages are available , e.g. ftp://ftp.icm.edu.pl/vol/rzm1/linux-...h7.rf.i386.rpm .. This link is fast today ... .. then it is up to the OP to test, if the package works ... ..... |
Actually, I should have said '... if possible'. Note that although pkgs are avail for 7.2, it hasn't been updated in yrs .. For security reasons, this is bad for us as well as the user.
|
# 11
Point taken ... I agree .. |
All times are GMT -5. The time now is 07:02 AM. |