Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have completely obliterated fedora 2 redhat package manager, rpmbuild, rpmcpio the lot,
is there any way I can re-install rpm without RPM? I cant find the source code in tar or gz format anywhere all instances of redhat package manager are in rpm format, thus I cant re-install as I no longer have the software. Is there a way to fix this as I dont have to re-install as this is the best I have had my linux box set up and I have also manged to work around many bugs in my system to have a good setup by my standards :-).
If you can't find the rpm command somewhere on the install disk, you can download the tarball here. I think this is the binary rather than the source, but it includes a lot of header files and man pages and other programs like rpm2cpio.
I think you may need to run: make install as root from the extracted directory to install and set up the rpm system.
You response came while I was editing my original message. You may want to re-read it above.
I don't know if running make will leave you with a re-initialized rpm database however. Better look at the read me files and study the makefile first.
The binary is there however in the /bin subdirectory of the extracted tar-ball package. You may need the cooresponding library and binary files installed also so you aren't mixing versions. Or download the version you know you need, as there are several versions available on the ftp site, however not all versions have a tarball.
I already have mc installed but that says that all my rpms are inconsistent extfs archives, Im surprised a simple tool hasnt been designed for this kind of thing happening? The source is also moaning about everything ..... I think I may have to re-install , if its not one thing its another also the rpms that midnight commander is saying are corrupt ........ well many of them i have installed before with no problems(before i obliterated rpm)
Yeah im considering it , however you see how during the fedora install rpms are installed is there anyway I can access that command on the disk? its just I have the cd mounted rescue mode but I dont no where to look for it
heres an update, ..... I think i already tried yum however I shall try again...... I remembered that I have an unused ext3 partion so I have done a fersh install on the ext3 partition this way I will have an original fedora core install with rpm, so now i have the following layout
system without rpm ------
end system without rpm -------
new system with rpm
new system with rpm end ------
how would i go about installing rpm on the system without rpm FROM the system with rpm, Ive tried prefix= but its says package is not rellocatable, Ive succesfully mounted both the old & new system during linux rescue but im unsure what to do next as I though I copied the relevant files but im getting error ehilr loading shared libraries librpm-4.3.so cannot open shared object file no such file or directroy?
I managed to get rpm installed by doing the following:
mount -o loop /mnt/cdrom/Fedora/base/stage2.img /mnt/rescue
then i did rpm which gave an error about shared libaries. Finally to get rid of shared librarys error I added /mnt/rescue/usr/lib64 and /mnt/rescue/usr/lib to /etc/ld.so.conf and ran ldconfig ......
The above got rid of the shared libraries error but I was getting a error about rpmrc being unreadable so I copied /mnt/rescue/usr/lib/rpm into /usr/lib/rpm and rpm of the fedora disk worked , I them did rpm -Uvh rpm-4.X.rpm and rpm is now installed again.
Just thought I would put this down in a forum just in case someone else completely destroys there rpm.
The only thing is I installed to root partitions e.g linux installed twice on different parts of the same drive now grub is hay wire lol. If I figured that solution sooner I would never have had to install linux twice
And that grub fixed so im back in business thanks for your input ..... now back to my original problem regarding apt-get which is how I managed to delete rpm in the first place hehe ..... but im putting that in another thread because it is a different subject