Solved

This is interesting, I am running CentOS 5.2 64bits. I removed YUM and RPM by accident, any idea how to install rpm or yum on the server again?

Posted on 2008-10-25
5
1,009 Views
Last Modified: 2013-12-16
This is interesting, I am running CentOS 5.2 64bits. I removed YUM and RPM by accident, any idea how to install rpm or yum on the server again?

I did a mistake by using, "yum remove sqlite -y". RPM, YUM and a bunch of other related packages got deleted. Now I would like to have RPM or YUM back on the server. Any one know the best way to do it?

Its CentOS 5.2 64bits.
Thanks
0
Comment
Question by:Octalys
  • 3
5 Comments
 
LVL 4

Assisted Solution

by:ben-gur
ben-gur earned 75 total points
ID: 22804832
If you have X Windows install, then run the Package Management Tool - from the Main Menu => System Settings => Add/Remove Applications, reselect the packages you accidentally uninstalled and click the "update" button.
You will need the installation CD's

Second method would be a bit harder and involved installing yum from source. Download yum:
http://yum.baseurl.org/download/3.2/yum-3.2.19.tar.gz
extract to somewhere, and type "make" and "make install" (follow the INSTALL file).

Third option would be to download rpm source from here:
http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz
Follow the INSTALL file to install rpm from source.
You might also need the help of the cpio program after installing from source. Check this thread:
http://forums.fedoraforum.org/archive/index.php/t-76200.html

Good luck,
Adam.
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 425 total points
ID: 22806111
Get your install media back.

The install CDs and the CentOS FTP site both contain all the RPM files you need.

Unfortunately, since you uninstalled RPM also, you will be unable to install RPM packages.

First of all: I suggest backing up your RPM database as a just-in-case measure (not that things can get a lot worse)

I suggest booting from CD and attempting an "upgrade" procedure.


Or alternatively...

install rpm2tgz  on a second  system,   and convert the RPM files you need to "re-bootstrap"  your package management system  to  .TAR.GZ  format

Then copy the .TAR.GZ  files to the crippled system and untar the files manually.


You need to get the dependencies to make RPM working  (including SQL lite)

Once  RPM is working,  then you can use   "rpm"  commands to install package files manually.

YUM should return when you finish re-installing the YUM RPM and its dependencies.







0
 

Author Comment

by:Octalys
ID: 22827722
Thanks,

Easiest for me was to find a rpm2tgz convert then untar it. When I have installed rpm rpm-libs and sqlite, rpm was working perfectly.
0
 

Author Comment

by:Octalys
ID: 25630913
Bigdump description:
To restore the very large backup of your mySQL database (or a part of it) into the new or the same mySQL database. You can't access the server shell and you can't import the dump using phpMyAdmin or any other scripts due to hard memory resp. runtime limit of the web server.

I dont want to restore, just backup and I have access to the shell~
0
 

Author Comment

by:Octalys
ID: 25630915
Oeps, wrong window......
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now