remove libcurl by mistake!
I just remove libcurl without realising it removes yum and rpm.
How do I get it back? Code:
root@server init.d]# yum remove libcurl |
Restore from backup? 'wget' all packages from your Centos repo, boot the Centos installer CD, mount partitions, chroot into it then re-install?
|
Quote:
Can't I just copy the rpm package from somewhere stick it in /bin/rpm and it will work? |
Next time do mention essentials in your OP please. Sure you can copy package contents over as long as (the %arch matches ;-p and) you afterwards install packages properly.
|
Quote:
Is it just the /bin/yum and /bin/rpm? Is there anything else like the repo folder or other? |
Basically pick from what you listed above, right? I mean the list is already there. IIRC it'll be something like rpm, libsqlite, rpm-libs, python, rpm-python, python-elementtree, python-iniparse, python-sqlite, urlgrabber, popt, gnupg. /etc/yum.conf and /etc/yum.repos.d are in Yum and yum.repos.d contents are in the %{reponame}-release.* rpms.
|
Quote:
Isn;t there a way to download rpm and install it directly? So, I need all those folders from another linux machine to get it to work again? Code:
[root ~]# locate rpm |
Quote:
then run wget yum then build yum? |
I copied /bin/rpm but now I get this error:
[root@server myscripts]# rpm -ivh libsqlite-2.8.15-1.i386.rpm rpm: error while loading shared libraries: librpm-4.4.so: cannot open shared object file: No such file or directory [root@server myscripts]# |
Quote:
Quote:
Quote:
Quote:
Quote:
As root: Code:
# on the "client": |
All times are GMT -5. The time now is 05:00 AM. |