LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 12-02-2011, 07:08 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
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
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package libcurl.i686 0:7.19.7-16.el6 set to be erased
--> Processing Dependency: libcurl.so.4 for package: python-pycurl-7.19.0-8.el6.i686
--> Processing Dependency: libcurl.so.4 for package: git-1.7.1-2.el6_0.1.i686
--> Processing Dependency: libcurl.so.4 for package: curl-7.19.7-16.el6.i686
--> Processing Dependency: libcurl.so.4 for package: xmlrpc-c-client-1.16.24-1200.1840.el6.i686
--> Processing Dependency: libcurl.so.4 for package: php-common-5.3.2-6.el6_0.1.i686
--> Processing Dependency: libcurl.so.4 for package: gnupg2-2.0.14-4.el6.i686
--> Processing Dependency: libcurl = 7.19.7-16.el6 for package: curl-7.19.7-16.el6.i686
--> Processing Dependency: libcurl >= 7.19.7 for package: python-pycurl-7.19.0-8.el6.i686
--> Running transaction check
---> Package curl.i686 0:7.19.7-16.el6 set to be erased
--> Processing Dependency: curl for package: rpm-4.8.0-12.el6.i686
--> Processing Dependency: curl for package: abrt-addon-kerneloops-1.1.13-4.el6.i686
---> Package git.i686 0:1.7.1-2.el6_0.1 set to be erased
--> Processing Dependency: git = 1.7.1-2.el6_0.1 for package: perl-Git-1.7.1-2.el6_0.1.noarch
---> Package gnupg2.i686 0:2.0.14-4.el6 set to be erased
--> Processing Dependency: gnupg2 for package: gpgme-1.1.8-3.el6.i686
---> Package php-common.i686 0:5.3.2-6.el6_0.1 set to be erased
--> Processing Dependency: php-common = 5.3.2-6.el6_0.1 for package: php-pdo-5.3.2-6.el6_0.1.i686
--> Processing Dependency: php-common = 5.3.2-6.el6_0.1 for package: php-cli-5.3.2-6.el6_0.1.i686
--> Processing Dependency: php-common = 5.3.2-6.el6_0.1 for package: php-mysql-5.3.2-6.el6_0.1.i686
--> Processing Dependency: php-common = 5.3.2-6.el6_0.1 for package: php-5.3.2-6.el6_0.1.i686
---> Package python-pycurl.i686 0:7.19.0-8.el6 set to be erased
--> Processing Dependency: python-pycurl for package: python-urlgrabber-3.9.1-7.el6.noarch
---> Package xmlrpc-c-client.i686 0:1.16.24-1200.1840.el6 set to be erased
--> Processing Dependency: libxmlrpc_client.so.3 for package: abrt-cli-1.1.13-4.el6.i686
--> Processing Dependency: libxmlrpc_client.so.3 for package: abrt-1.1.13-4.el6.i686
--> Processing Dependency: libxmlrpc_client.so.3 for package: abrt-libs-1.1.13-4.el6.i686
--> Running transaction check
---> Package abrt.i686 0:1.1.13-4.el6 set to be erased
--> Processing Dependency: abrt = 1.1.13-4.el6 for package: abrt-plugin-rhtsupport-1.1.13-4.el6.i686
--> Processing Dependency: abrt = 1.1.13-4.el6 for package: abrt-addon-ccpp-1.1.13-4.el6.i686
--> Processing Dependency: abrt = 1.1.13-4.el6 for package: abrt-plugin-logger-1.1.13-4.el6.i686
--> Processing Dependency: abrt = 1.1.13-4.el6 for package: abrt-plugin-sosreport-1.1.13-4.el6.i686
--> Processing Dependency: abrt = 1.1.13-4.el6 for package: abrt-addon-python-1.1.13-4.el6.i686
---> Package abrt-addon-kerneloops.i686 0:1.1.13-4.el6 set to be erased
---> Package abrt-cli.i686 0:1.1.13-4.el6 set to be erased
---> Package abrt-libs.i686 0:1.1.13-4.el6 set to be erased
---> Package gpgme.i686 0:1.1.8-3.el6 set to be erased
--> Processing Dependency: libgpgme.so.11 for package: pygpgme-0.1-18.20090824bzr68.el6.i686
--> Processing Dependency: libgpgme.so.11(GPGME_1.0) for package: pygpgme-0.1-18.20090824bzr68.el6.i686
--> Processing Dependency: libgpgme.so.11(GPGME_1.1) for package: pygpgme-0.1-18.20090824bzr68.el6.i686
---> Package perl-Git.noarch 0:1.7.1-2.el6_0.1 set to be erased
---> Package php.i686 0:5.3.2-6.el6_0.1 set to be erased
---> Package php-cli.i686 0:5.3.2-6.el6_0.1 set to be erased
---> Package php-mysql.i686 0:5.3.2-6.el6_0.1 set to be erased
---> Package php-pdo.i686 0:5.3.2-6.el6_0.1 set to be erased
---> Package python-urlgrabber.noarch 0:3.9.1-7.el6 set to be erased
--> Processing Dependency: python-urlgrabber >= 3.9.0-8 for package: yum-3.2.27-14.el6.centos.noarch
---> Package rpm.i686 0:4.8.0-12.el6 set to be erased
--> Processing Dependency: rpm for package: policycoreutils-2.0.83-19.8.el6_0.i686
--> Processing Dependency: rpm = 4.8.0-12.el6 for package: rpm-libs-4.8.0-12.el6.i686
--> Processing Dependency: rpm = 4.8.0-12.el6 for package: rpm-python-4.8.0-12.el6.i686
--> Processing Dependency: rpm for package: man-1.6f-29.el6.i686
--> Processing Dependency: rpm = 4.8.0-12.el6 for package: rpm-build-4.8.0-12.el6.i686
--> Running transaction check
---> Package abrt-addon-ccpp.i686 0:1.1.13-4.el6 set to be erased
---> Package abrt-addon-python.i686 0:1.1.13-4.el6 set to be erased
---> Package abrt-plugin-logger.i686 0:1.1.13-4.el6 set to be erased
---> Package abrt-plugin-rhtsupport.i686 0:1.1.13-4.el6 set to be erased
---> Package abrt-plugin-sosreport.i686 0:1.1.13-4.el6 set to be erased
---> Package man.i686 0:1.6f-29.el6 set to be erased
--> Processing Dependency: man >= 1.6f-24 for package: man-pages-overrides-1.0-1.el6.noarch
---> Package policycoreutils.i686 0:2.0.83-19.8.el6_0 set to be erased
---> Package pygpgme.i686 0:0.1-18.20090824bzr68.el6 set to be erased
---> Package rpm-build.i686 0:4.8.0-12.el6 set to be erased
---> Package rpm-libs.i686 0:4.8.0-12.el6 set to be erased
--> Processing Dependency: librpm.so.1 for package: systemtap-1.2-9.el6.i686
---> Package rpm-python.i686 0:4.8.0-12.el6 set to be erased
--> Processing Dependency: rpm-python for package: system-config-network-tui-1.6.0.el6.2-1.el6.noarch
---> Package yum.noarch 0:3.2.27-14.el6.centos set to be erased
--> Processing Dependency: yum >= 3.0 for package: yum-plugin-fastestmirror-1.1.26-11.el6.noarch
--> Processing Dependency: yum >= 3.2.25-10 for package: yum-utils-1.1.26-11.el6.noarch
--> Running transaction check
---> Package man-pages-overrides.noarch 0:1.0-1.el6 set to be erased
---> Package system-config-network-tui.noarch 0:1.6.0.el6.2-1.el6 set to be erased
---> Package systemtap.i686 0:1.2-9.el6 set to be erased
---> Package yum-plugin-fastestmirror.noarch 0:1.1.26-11.el6 set to be erased
---> Package yum-utils.noarch 0:1.1.26-11.el6 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================================================
 Package                                     Arch                     Version                                      Repository                                                Size
==================================================================================================================================================================================
Removing:
 libcurl                                     i686                     7.19.7-16.el6                                @anaconda-CentOS-201107091643.i386/6.0                   334 k
Removing for dependencies:
 abrt                                        i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   1.2 M
 abrt-addon-ccpp                             i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    49 k
 abrt-addon-kerneloops                       i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    35 k
 abrt-addon-python                           i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    19 k
 abrt-cli                                    i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    63 k
 abrt-libs                                   i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   162 k
 abrt-plugin-logger                          i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    18 k
 abrt-plugin-rhtsupport                      i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    35 k
 abrt-plugin-sosreport                       i686                     1.1.13-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   9.1 k
 curl                                        i686                     7.19.7-16.el6                                @anaconda-CentOS-201107091643.i386/6.0                   343 k
 git                                         i686                     1.7.1-2.el6_0.1                              @updates-burstnet                                         14 M
 gnupg2                                      i686                     2.0.14-4.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   5.7 M
 gpgme                                       i686                     1.1.8-3.el6                                  @anaconda-CentOS-201107091643.i386/6.0                   724 k
 man                                         i686                     1.6f-29.el6                                  @anaconda-CentOS-201107091643.i386/6.0                   375 k
 man-pages-overrides                         noarch                   1.0-1.el6                                    @anaconda-CentOS-201107091643.i386/6.0                    18 k
 perl-Git                                    noarch                   1.7.1-2.el6_0.1                              @updates-burstnet                                         35 k
 php                                         i686                     5.3.2-6.el6_0.1                              @updates-burstnet                                        3.2 M
 php-cli                                     i686                     5.3.2-6.el6_0.1                              @updates-burstnet                                        6.3 M
 php-common                                  i686                     5.3.2-6.el6_0.1                              @updates-burstnet                                        2.9 M
 php-mysql                                   i686                     5.3.2-6.el6_0.1                              @updates-burstnet                                        179 k
 php-pdo                                     i686                     5.3.2-6.el6_0.1                              @updates-burstnet                                        150 k
 policycoreutils                             i686                     2.0.83-19.8.el6_0                            @updates-burstnet                                        3.7 M
 pygpgme                                     i686                     0.1-18.20090824bzr68.el6                     @anaconda-CentOS-201107091643.i386/6.0                   232 k
 python-pycurl                               i686                     7.19.0-8.el6                                 @updates-burstnet                                        224 k
 python-urlgrabber                           noarch                   3.9.1-7.el6                                  @anaconda-CentOS-201107091643.i386/6.0                   314 k
 rpm                                         i686                     4.8.0-12.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   1.9 M
 rpm-build                                   i686                     4.8.0-12.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   305 k
 rpm-libs                                    i686                     4.8.0-12.el6                                 @anaconda-CentOS-201107091643.i386/6.0                   716 k
 rpm-python                                  i686                     4.8.0-12.el6                                 @anaconda-CentOS-201107091643.i386/6.0                    99 k
 system-config-network-tui                   noarch                   1.6.0.el6.2-1.el6                            @anaconda-CentOS-201107091643.i386/6.0                   4.8 M
 systemtap                                   i686                     1.2-9.el6                                    @anaconda-CentOS-201107091643.i386/6.0                   7.2 M
 xmlrpc-c-client                             i686                     1.16.24-1200.1840.el6                        @anaconda-CentOS-201107091643.i386/6.0                    38 k
 yum                                         noarch                   3.2.27-14.el6.centos                         @anaconda-CentOS-201107091643.i386/6.0                   3.8 M
 yum-plugin-fastestmirror                    noarch                   1.1.26-11.el6                                @anaconda-CentOS-201107091643.i386/6.0                    33 k
 yum-utils                                   noarch                   1.1.26-11.el6                                @anaconda-CentOS-201107091643.i386/6.0                   239 k

Transaction Summary
==================================================================================================================================================================================
Remove       36 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Erasing        : abrt-cli-1.1.13-4.el6.i686                                                                                                                                1/36 
  Erasing        : abrt-addon-kerneloops-1.1.13-4.el6.i686                                                                                                                   2/36 
  Erasing        : abrt-addon-ccpp-1.1.13-4.el6.i686                                                                                                                         3/36 
  Erasing        : php-mysql-5.3.2-6.el6_0.1.i686                                                                                                                            4/36 
  Erasing        : php-5.3.2-6.el6_0.1.i686                                                                                                                                  5/36 
  Erasing        : rpm-build-4.8.0-12.el6.i686                                                                                                                               6/36 
  Erasing        : php-cli-5.3.2-6.el6_0.1.i686                                                                                                                              7/36 
  Erasing        : php-pdo-5.3.2-6.el6_0.1.i686                                                                                                                              8/36 
  Erasing        : php-common-5.3.2-6.el6_0.1.i686                                                                                                                           9/36 
  Erasing        : abrt-addon-python-1.1.13-4.el6.i686                                                                                                                      10/36 
  Erasing        : abrt-plugin-logger-1.1.13-4.el6.i686                                                                                                                     11/36 
  Erasing        : abrt-plugin-rhtsupport-1.1.13-4.el6.i686                                                                                                                 12/36 
  Erasing        : abrt-plugin-sosreport-1.1.13-4.el6.i686                                                                                                                  13/36 
  Erasing        : abrt-1.1.13-4.el6.i686                                                                                                                                   14/36 
  Erasing        : abrt-libs-1.1.13-4.el6.i686                                                                                                                              15/36 
  Erasing        : xmlrpc-c-client-1.16.24-1200.1840.el6.i686                                                                                                               16/36 
  Erasing        : systemtap-1.2-9.el6.i686                                                                                                                                 17/36 
  Erasing        : policycoreutils-2.0.83-19.8.el6_0.i686                                                                                                                   18/36 
  Erasing        : yum-utils-1.1.26-11.el6.noarch                                                                                                                           19/36 
  Erasing        : yum-plugin-fastestmirror-1.1.26-11.el6.noarch                                                                                                            20/36 
  Erasing        : yum-3.2.27-14.el6.centos.noarch                                                                                                                          21/36 
  Erasing        : python-urlgrabber-3.9.1-7.el6.noarch                                                                                                                     22/36 
  Erasing        : git-1.7.1-2.el6_0.1.i686                                                                                                                                 23/36 
  Erasing        : perl-Git-1.7.1-2.el6_0.1.noarch                                                                                                                          24/36 
  Erasing        : man-pages-overrides-1.0-1.el6.noarch                                                                                                                     25/36 
  Erasing        : system-config-network-tui-1.6.0.el6.2-1.el6.noarch                                                                                                       26/36 
  Erasing        : rpm-python-4.8.0-12.el6.i686                                                                                                                             27/36 
  Erasing        : man-1.6f-29.el6.i686                                                                                                                                     28/36 
  Erasing        : rpm-libs-4.8.0-12.el6.i686                                                                                                                               29/36 
  Erasing        : rpm-4.8.0-12.el6.i686                                                                                                                                    30/36 
  Erasing        : curl-7.19.7-16.el6.i686                                                                                                                                  31/36 
  Erasing        : python-pycurl-7.19.0-8.el6.i686                                                                                                                          32/36 
  Erasing        : pygpgme-0.1-18.20090824bzr68.el6.i686                                                                                                                    33/36 
  Erasing        : gpgme-1.1.8-3.el6.i686                                                                                                                                   34/36 
  Erasing        : gnupg2-2.0.14-4.el6.i686                                                                                                                                 35/36 
  Erasing        : libcurl-7.19.7-16.el6.i686                                                                                                                               36/36 

Removed:
  libcurl.i686 0:7.19.7-16.el6                                                                                                                                                    

Dependency Removed:
  abrt.i686 0:1.1.13-4.el6                                  abrt-addon-ccpp.i686 0:1.1.13-4.el6                    abrt-addon-kerneloops.i686 0:1.1.13-4.el6                     
  abrt-addon-python.i686 0:1.1.13-4.el6                     abrt-cli.i686 0:1.1.13-4.el6                           abrt-libs.i686 0:1.1.13-4.el6                                 
  abrt-plugin-logger.i686 0:1.1.13-4.el6                    abrt-plugin-rhtsupport.i686 0:1.1.13-4.el6             abrt-plugin-sosreport.i686 0:1.1.13-4.el6                     
  curl.i686 0:7.19.7-16.el6                                 git.i686 0:1.7.1-2.el6_0.1                             gnupg2.i686 0:2.0.14-4.el6                                    
  gpgme.i686 0:1.1.8-3.el6                                  man.i686 0:1.6f-29.el6                                 man-pages-overrides.noarch 0:1.0-1.el6                        
  perl-Git.noarch 0:1.7.1-2.el6_0.1                         php.i686 0:5.3.2-6.el6_0.1                             php-cli.i686 0:5.3.2-6.el6_0.1                                
  php-common.i686 0:5.3.2-6.el6_0.1                         php-mysql.i686 0:5.3.2-6.el6_0.1                       php-pdo.i686 0:5.3.2-6.el6_0.1                                
  policycoreutils.i686 0:2.0.83-19.8.el6_0                  pygpgme.i686 0:0.1-18.20090824bzr68.el6                python-pycurl.i686 0:7.19.0-8.el6                             
  python-urlgrabber.noarch 0:3.9.1-7.el6                    rpm.i686 0:4.8.0-12.el6                                rpm-build.i686 0:4.8.0-12.el6                                 
  rpm-libs.i686 0:4.8.0-12.el6                              rpm-python.i686 0:4.8.0-12.el6                         system-config-network-tui.noarch 0:1.6.0.el6.2-1.el6          
  systemtap.i686 0:1.2-9.el6                                xmlrpc-c-client.i686 0:1.16.24-1200.1840.el6           yum.noarch 0:3.2.27-14.el6.centos                             
  yum-plugin-fastestmirror.noarch 0:1.1.26-11.el6           yum-utils.noarch 0:1.1.26-11.el6                      

Complete!
[root@server init.d]# yum install libcurl
-bash: /usr/bin/yum: No such file or directory
[root@server init.d]#
 
Old 12-02-2011, 07:28 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Restore from backup? 'wget' all packages from your Centos repo, boot the Centos installer CD, mount partitions, chroot into it then re-install?
 
Old 12-02-2011, 07:30 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
Restore from backup? 'wget' all packages from your Centos repo, boot the Centos installer CD, mount partitions, chroot into it then re-install?
No backup as it is a new server but I do not have a CD as it is a dedicated server in a data centre.
Can't I just copy the rpm package from somewhere stick it in /bin/rpm and it will work?

Last edited by qwertyjjj; 12-02-2011 at 07:41 AM.
 
Old 12-02-2011, 07:42 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 12-02-2011, 07:44 AM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
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.
What do I need to copy to have rpm and yum work again?
Is it just the /bin/yum and /bin/rpm?
Is there anything else like the repo folder or other?
 
Old 12-02-2011, 07:53 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 12-02-2011, 08:15 AM   #7
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
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.
Sorry, but I'm not sure where all those are?
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
/bin/rpm
/etc/ipsec.secrets.rpmsave
/etc/rpm
/etc/yum.conf.rpmnew
/etc/X11/fs/config.rpmsave
/etc/apt/sources.list.d/rpmforge-extras.list
/etc/apt/sources.list.d/rpmforge-testing.list
/etc/apt/sources.list.d/rpmforge.list
/etc/cron.daily/rpm
/etc/cron.daily/cron.daily/rpm
/etc/gdm/custom.conf.rpmsave
/etc/logrotate.d/rpm
/etc/ntop/GeoIPASNum.dat.rpmsave
/etc/ntop/GeoLiteCity.dat.rpmsave
/etc/nxserver/node.conf.rpmnew
/etc/nxserver/node.conf.rpmsave
/etc/pam.d/system-auth.rpmnew
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
/etc/pki/rpm-gpg/RPM-GPG-KEY-beta
/etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-fabian
/etc/rpm/macros.prelink
/etc/rpm/macros.specspo
/etc/rpm/platform
/etc/sarg/sarg.conf.rpmsave
/etc/smart/channels/rpmforge.channel
/etc/squid/squid.conf.rpmnew
/etc/ssh/sshd_config.rpmnew
/etc/sysconfig/system-config-securitylevel.rpmorig
/etc/sysconfig/vncservers.rpmsave
/etc/sysconfig/rhn/sources.rpmforge.txt
/etc/xinetd.d/vncts.rpmsave
/etc/yum.repos.d/CentOS-Base.repo.rpmnew
/etc/yum.repos.d/elrepo.repo.rpmnew
/etc/yum.repos.d/mirrors-rpmforge
/etc/yum.repos.d/mirrors-rpmforge-extras
/etc/yum.repos.d/mirrors-rpmforge-testing
/etc/yum.repos.d/rpmforge.repo
/opt/matrixsa/conf_files_for_rpm
/opt/matrixsa/conf_files_for_rpm/httpd
/opt/matrixsa/conf_files_for_rpm/init.d
/opt/matrixsa/conf_files_for_rpm/logrotate.d
/opt/matrixsa/conf_files_for_rpm/pam.d
/opt/matrixsa/conf_files_for_rpm/httpd/vhost.conf
/opt/matrixsa/conf_files_for_rpm/init.d/matrixsa
/opt/matrixsa/conf_files_for_rpm/logrotate.d/matrixsa
/opt/matrixsa/conf_files_for_rpm/pam.d/matrixsa
/usr/bin/rpm2cpio
/usr/bin/rpmdb
/usr/bin/rpmquery
/usr/bin/rpmsign
/usr/bin/rpmverify
/usr/lib/librpm-4.4.so
/usr/lib/librpmbuild-4.4.so
/usr/lib/librpmdb-4.4.so
/usr/lib/librpmio-4.4.so
/usr/lib/rpm
/usr/lib/courier/share/sysconftool-rpmupgrade
/usr/lib/python2.4/distutils/command/bdist_rpm.py
/usr/lib/python2.4/distutils/command/bdist_rpm.py.bdist-rpm
/usr/lib/python2.4/distutils/command/bdist_rpm.pyc
/usr/lib/python2.4/distutils/command/bdist_rpm.pyo
/usr/lib/python2.4/lib-dynload/grpmodule.so
/usr/lib/python2.4/site-packages/rpm
/usr/lib/python2.4/site-packages/rpmUtils
/usr/lib/python2.4/site-packages/rpm/__init__.py
/usr/lib/python2.4/site-packages/rpm/__init__.pyc
/usr/lib/python2.4/site-packages/rpm/__init__.pyo
/usr/lib/python2.4/site-packages/rpm/_rpmmodule.so
/usr/lib/python2.4/site-packages/rpmUtils/__init__.py
/usr/lib/python2.4/site-packages/rpmUtils/__init__.pyc
/usr/lib/python2.4/site-packages/rpmUtils/__init__.pyo
/usr/lib/python2.4/site-packages/rpmUtils/arch.py
/usr/lib/python2.4/site-packages/rpmUtils/arch.pyc
/usr/lib/python2.4/site-packages/rpmUtils/arch.pyo

Last edited by qwertyjjj; 12-02-2011 at 08:17 AM.
 
Old 12-02-2011, 09:25 AM   #8
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
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.
Can I just copy /bin/rpm from another server
then run wget yum
then build yum?
 
Old 12-02-2011, 09:40 AM   #9
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
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]#
 
Old 12-02-2011, 10:48 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by qwertyjjj View Post
Sorry, but I'm not sure where all those are?
I listed rpm, libsqlite, rpm-libs, python, rpm-python, python-elementtree, python-iniparse, python-sqlite, urlgrabber, popt, gnupg already?


Quote:
Originally Posted by qwertyjjj View Post
Isn;t there a way to download rpm and install it directly?
Talking about a Chicken and Egg situation.


Quote:
Originally Posted by qwertyjjj View Post
So, I need all those folders from another linux machine to get it to work again?
No.


Quote:
Originally Posted by qwertyjjj View Post
Can I just copy /bin/rpm from another server
then run wget yum
then build yum?
No.


Quote:
Originally Posted by qwertyjjj View Post
I copied /bin/rpm but now I get this error:
Code:
rpm: error while loading shared libraries: librpm-4.4.so: cannot open shared object file: No such file or directory
Missing libraries or symbolic links.


As root:
Code:
# on the "client":
# * If you want the scriptlets also run:
# * for RPM in rpm sqlite rpm-libs python rpm-python python-elementtree python-iniparse python-sqlite python-urlgrabber popt gnupg; do rpm -q $RPM --scripts; done > /tmp/scripts
# * (not that there are any that would affect this).
# 
# Package files (the --exclude lines are for %tsflags and ensuring we get either a pristine RPMDB or use the existing one):
tar -cf /tmp/rpm.tar --exclude=/var/lib/rpm --exclude /var/spool/repackage $(rpm -ql rpm sqlite rpm-libs python rpm-python python-elementtree python-iniparse python-sqlite python-urlgrabber popt gnupg)
# Copy over. Of course you're using an unprivileged user account...
scp /tmp/rpm.tar unprivilegeduser@server:/tmp/
ssh unprivilegeduser@server
su -l
# "-C /" ensures you unpack in / and not somewhere else:
tar -C / -xf /tmp/rpm.tar
#... gets you all files including symbolic links.
# Update linker cache while we're at it:
ldconfig
# ...and check if the RPMDB is still there:
ls -al /var/lib/rpm
# If it's not let me know.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] libcurl manaila Linux - Software 6 10-12-2011 01:20 AM
libcurl for solaris 10 ddegif Solaris / OpenSolaris 5 05-02-2011 02:27 AM
Libcurl Problem SlacUser Slackware 6 05-09-2007 05:39 PM
libcurl.so.2 liljhand Linux - Newbie 3 01-24-2005 07:17 PM
Why is libcurl not being found? maestro52 Fedora 7 12-23-2004 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration