RPM : how to restore RPM when it's broken ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > RPM : how to restore RPM when it's broken ?




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    RPM : how to restore RPM when it's broken ?  
Bruno


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-04 10:45 PM

Hello,

as I broke my RPM binaries, where can I download a binary version, or an
easy one to compile + install ?

Note: my question doesn't cover the RPM database, but (unfortunately) RPM
itself.

Thanks,
Bruno






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 07:47 AM

On Mon, 20 Dec 2004 23:50:53 +0100, Bruno wrote:

> Hello,
>
> as I broke my RPM binaries, where can I download a binary version, or an
> easy one to compile + install ?
>
> Note: my question doesn't cover the RPM database, but (unfortunately)
> RPM itself.

Just re-install the ones you have installed using /usr/lib/rpm/rpmi (use
it just like rpm) for the details see; man rpm


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Bruno


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 07:47 AM

Unfortuantely it's all /usr/lib/rpm* which is broken.
I'm looking for an emergency RPM that I can install whitout ... RPM.

Lenard wrote:

> On Mon, 20 Dec 2004 23:50:53 +0100, Bruno wrote:
> 
>
> Just re-install the ones you have installed using /usr/lib/rpm/rpmi (use
> it just like rpm) for the details see; man rpm
>
>






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 12:45 PM

On Tue, 21 Dec 2004 07:26:18 +0100, Bruno wrote:

> Unfortuantely it's all /usr/lib/rpm* which is broken. I'm looking for an
> emergency RPM that I can install whitout ... RPM.

First, please do not top post. Like reading a book you start at the
beginning and read to the finish.

Second, download, burn and use (a live FC3 CD, requires a 700MB CD);
http://ftp.linuxcenter.ru/iso/Linux4all_LiveCd_1.40/

If you are using a different version of Fedora/Red Hat Linux please
identify the version your using. The ISO above should work just fine on
Fedora Core 2/3.

Third, quit playing as root learn how to use 'su' and 'sudo' for
administrative tasks.


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 12:45 PM

On Tue, 21 Dec 2004 11:45:12 +0000, Lenard wrote:

> On Tue, 21 Dec 2004 07:26:18 +0100, Bruno wrote:
> 
>
> First, please do not top post. Like reading a book you start at the
> beginning and read to the finish.
>
> Second, download, burn and use (a live FC3 CD, requires a 700MB CD);
> http://ftp.linuxcenter.ru/iso/Linux4all_LiveCd_1.40/
>
> If you are using a different version of Fedora/Red Hat Linux please
> identify the version your using. The ISO above should work just fine on
> Fedora Core 2/3.
>
> Third, quit playing as root learn how to use 'su' and 'sudo' for
> administrative tasks.

In addition (I almost forgot about this), you can boot your system with
your installation media in rescue mode and use /usr/bin/rpm from the media
to re-install the rpm packages. Just type 'linux rescue' without the
quotes, answer a few questions then when ready re-install the rpm
packages.


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Bruno


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 10:45 PM

Lenard wrote:

> On Tue, 21 Dec 2004 11:45:12 +0000, Lenard wrote:
> 
[vbcol=seagreen] 
>
> In addition (I almost forgot about this), you can boot your system with
> your installation media in rescue mode and use /usr/bin/rpm from the media
> to re-install the rpm packages. Just type 'linux rescue' without the
> quotes, answer a few questions then when ready re-install the rpm
> packages.
>
>
Thanks Lenard. Looks better as I was able to restore the rpm facilities (via
limux rescue).
However the file Packages (RPM database ?) seems corrupt or not compatible
with the restored RPM which is a 4.2.1 as I received the following when
using some commands to check RPM:

rpm -vv rebuilddb
(...)
error: unrecognized db option: "db3" ignored
(...)

rpm -qa
error: cannot open Packages database in /var/lib/rpm. no packages.

db_verify Packages
db_verify: Program version 4.2 doesn't match environment version


How to be check / confirm versions to be used ?
Is there a way to force rebuild of file Packages ?

Thanks.
Bruno.







[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 10:45 PM

On Tue, 21 Dec 2004 21:10:33 +0100, Bruno wrote:

> Thanks Lenard. Looks better as I was able to restore the rpm facilities
> (via limux rescue).
> However the file Packages (RPM database ?) seems corrupt or not
> compatible with the restored RPM which is a 4.2.1 as I received the
> following when using some commands to check RPM:
>
> rpm -vv rebuilddb
> (...)
> error: unrecognized db option: "db3" ignored (...)
>
> rpm -qa
> error: cannot open Packages database in /var/lib/rpm. no packages.
>
> db_verify Packages
> db_verify: Program version 4.2 doesn't match environment version
>
>
> How to be check / confirm versions to be used ? Is there a way to force
> rebuild of file Packages ?

What version of Fedora/Red Hat are you running??

Maybe it's time to visit; http://www.rpm.org/hintskinks/repairdb-2003-06/

Follow the directions first, if that does not work then maybe it's time to
file a bug report, if so explain everything;

The version of Linux your using.....distro/kernel/glibc/rpm versions What
you did to corrupt rpm etc, etc


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Bruno


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-21-04 10:45 PM

Lenard wrote:

> On Tue, 21 Dec 2004 21:10:33 +0100, Bruno wrote:
> 
>
> What version of Fedora/Red Hat are you running??
>
> Maybe it's time to visit; http://www.rpm.org/hintskinks/repairdb-2003-06/
>
> Follow the directions first, if that does not work then maybe it's time to
> file a bug report, if so explain everything;
>
> The version of Linux your using.....distro/kernel/glibc/rpm versions What
> you did to corrupt rpm etc, etc
>
>

I tried the repairdb, but still have problems I mentionned before.

My versions are : Fedora Core-2, but I restored RPM from Core-1 (dont have
Core-2 disk).
Kernel 2.6.5-1.358
RPM 4.2.1
glibc 2.3.3

Regarding what happen..well..doing the following :
cd /var/lib/rpm
rm -f __db*
..I..oopss..delete more than __db*
Seems there is definitely mismatches regarding the version / level installed
on my system (and probably missing files too ?).

Will the upgrade to Core-3 help / be possible ?






[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
John Thompson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-22-04 07:45 AM

On 2004-12-20, Bruno <cd1@biz.tiscali.be> wrote:

> as I broke my RPM binaries, where can I download a binary version, or an
> easy one to compile + install ?

You can pick up rpm in tarball format here:

http://www.rpm.org/tools/tarball/

--

John (john@os2.dhs.org)





[ Post a follow-up to this message ]



    Re: RPM : how to restore RPM when it's broken ?  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-22-04 10:45 PM

On Wed, 22 Dec 2004 00:23:07 +0100, Bruno wrote:

> I tried the repairdb, but still have problems I mentionned before.
>
> My versions are : Fedora Core-2, but I restored RPM from Core-1 (dont
> have Core-2 disk).
> Kernel 2.6.5-1.358
> RPM 4.2.1
> glibc 2.3.3
>
>
This is your problem, the rpm packages from FC1 will not work with FC2 for
a lot of reasons. You can download the rpm packages and the FC2 rescue CD
image from here (it's a good idea to have this CD);

http://download.fedora.redhat.com/p...ore/2/i386/iso/

FC2-i386-rescuecd.iso            13-May-2004 05:38  75.8M

The rpm packages are here;

[url]http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/Fedora/RPMS/[/ur
l]

rpm-4.3.1-0.3.i386.rpm           06-May-2004 18:47   2.2M
rpm-build-4.3.1-0.3.i386.rpm     06-May-2004 18:47   437k
rpm-devel-4.3.1-0.3.i386.rpm     06-May-2004 18:47   3.2M
rpm-python-4.3.1-0.3.i386.rpm    06-May-2004 18:47    82k

After downloading the packages and ISO image. Create the rescue CD and
boot with it. When ready install the correct packages from the location
where they reside; /usr/bin/rpm Uvh rpm*.rpm

> Will the upgrade to Core-3 help / be possible ?

You should correct the rpm problem and database first before attempting to
upgrade. If you want after making a backup of everything important (docs,
configuration settings and anything else of importance) do a clean install
(wipe and load) without having to fix the rpm and database problem.


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:13 PM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register