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,013 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you don't know how to downgrade, my instructions below should be helpful.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

713 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