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,014 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
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.:

739 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