Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

files belong to 2 (two) different versions of package?!

 
   Soft32 Home -> Linux -> Partner Relationship Management RSS
Next:  dependencies  
Author Message
Joey Dewille

External


Since: May 18, 2004
Posts: 2



(Msg. 1) Posted: Tue May 18, 2004 9:06 am
Post subject: files belong to 2 (two) different versions of package?!
Archived from groups: linux>redhat>rpm (more info?)

Hello group,

I did
$ rpm -i package-6.1-109.i386.rpm

followed by
$ rpm -Uv --force package-6.1-110.i386.rpm

and now when I query ownership I get
$ rpm -qf /usr/local/bin/foo
package-6.1-109
package-6.1-110

This result is not what I expected.
Version 110 should have replaced 109 and 109 should have been erased from the
filesystem and from the rpm database.
FYI, foo was the same and had identical ownership/permissions/etc. in both packages.

There is only 1 question - why is rpm behaving so?
--Joey
Back to top
Login to vote
Daniel Ganek

External


Since: Aug 26, 2005
Posts: 40



(Msg. 2) Posted: Tue May 18, 2004 10:34 am
Post subject: Re: files belong to 2 (two) different versions of package?! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joey Dewille wrote:
> Hello group,
>
> I did
> $ rpm -i package-6.1-109.i386.rpm
>
> followed by
> $ rpm -Uv --force package-6.1-110.i386.rpm
>
> and now when I query ownership I get
> $ rpm -qf /usr/local/bin/foo
> package-6.1-109
> package-6.1-110
>
> This result is not what I expected.
> Version 110 should have replaced 109 and 109 should have been erased from the
> filesystem and from the rpm database.
> FYI, foo was the same and had identical ownership/permissions/etc. in both packages.
>
> There is only 1 question - why is rpm behaving so?
> --Joey
>
>

Because you said "--force". Why did you add that?

/dan
Back to top
Login to vote
Robert W.

External


Since: May 17, 2004
Posts: 5



(Msg. 3) Posted: Wed May 19, 2004 9:46 am
Post subject: Re: files belong to 2 (two) different versions of package?! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Die, 18 Mai 2004 at 18:06 GMT, Joey Dewille <joey1968 DeleteThis @fastmail.co.uk> wrote:
> Hello group,
>
> I did
> $ rpm -i package-6.1-109.i386.rpm
>
> followed by
> $ rpm -Uv --force package-6.1-110.i386.rpm
>
What do you need the --force for?

My my favourite method for updating:
#v+
rpm -Fvh --replacepkgs <packages>
#v-

This normally does the job. Probably you can replace "F" by "U", but
this could add extra-packages to your installation, which is normally
not desired.

> and now when I query ownership I get
> $ rpm -qf /usr/local/bin/foo
> package-6.1-109
> package-6.1-110
>
> This result is not what I expected.
> Version 110 should have replaced 109 and 109 should have been erased from the
> filesystem and from the rpm database.
> FYI, foo was the same and had identical ownership/permissions/etc. in both packages.
>
> There is only 1 question - why is rpm behaving so?

#v+
man rpm
#v-

> --Joey
>
>

HTH

--

Robert...
Back to top
Login to vote
Joey Dewille

External


Since: May 18, 2004
Posts: 2



(Msg. 4) Posted: Wed May 19, 2004 9:46 am
Post subject: Re: files belong to 2 (two) different versions of package?! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The short answer to you and to the previous poster D. Ganek is that I wanted to allow
the same version of the package to overwrite itself if requested to do so, and -U --force
works whether you are installing for the first time or upgrading.


"Robert W." <maril_manson.TakeThisOut@hotmail.com> wrote in message news:c8fl02$6c9$05$2@news.t-online.com...
> On Die, 18 Mai 2004 at 18:06 GMT, Joey Dewille <joey1968.TakeThisOut@fastmail.co.uk> wrote:
> > Hello group,
> >
> > I did
> > $ rpm -i package-6.1-109.i386.rpm
> >
> > followed by
> > $ rpm -Uv --force package-6.1-110.i386.rpm
> >
> What do you need the --force for?
>
> My my favourite method for updating:
> #v+
> rpm -Fvh --replacepkgs <packages>
> #v-
>
> This normally does the job. Probably you can replace "F" by "U", but
> this could add extra-packages to your installation, which is normally
> not desired.
>
> > and now when I query ownership I get
> > $ rpm -qf /usr/local/bin/foo
> > package-6.1-109
> > package-6.1-110
> >
> > This result is not what I expected.
> > Version 110 should have replaced 109 and 109 should have been erased from the
> > filesystem and from the rpm database.
> > FYI, foo was the same and had identical ownership/permissions/etc. in both packages.
> >
> > There is only 1 question - why is rpm behaving so?
>
> #v+
> man rpm
> #v-

With all due respect to the designers of rpm, the man page is terrible indeed,
and it doesn't answer the particular question I posed.
Very rarely have I seen users who get the rpm command line right the first time,
specially if it is a command they haven't used before or recently.
Had examples been added to the man page, it would have saved a lot of frustration
for self and others I know.
--Joey
Back to top
Login to vote
Robert W.

External


Since: May 17, 2004
Posts: 5



(Msg. 5) Posted: Wed May 19, 2004 4:18 pm
Post subject: Re: files belong to 2 (two) different versions of package?! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mit, 19 Mai 2004 at 17:22 GMT, Joey Dewille <joey1968 RemoveThis @fastmail.co.uk> wrote:
[...]

> With all due respect to the designers of rpm, the man page is terrible indeed,
> and it doesn't answer the particular question I posed.
> Very rarely have I seen users who get the rpm command line right the first time,
> specially if it is a command they haven't used before or recently.
> Had examples been added to the man page, it would have saved a lot of frustration
> for self and others I know.
> --Joey
>
>

Ok, I found the manpage to be quite clear in compare to others. The
issue of typing the command-line correct from the first time on is
probably known to everyone, I think. This always needs some experience
with the program you use, but these experiences you have to make
yourself. Don't worry, it'll become better someday... Smile
rpm is quite powerfull for managing installations. I love it!

--

Robert...
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rpm -l doesn't list files in package, why? - Can you give a hint please? How can I see the files in a kernel package? The rpm -l or --list option doesn't list the...

RPM Package files location - Hi, I am just a beginner using RPM Packages. I have a very simple doubt related to that. I am creating a rpm with a fe...

multiple versions parallel possible? - Hello Group Is it possible to install (e.g.) 2 differnt version of one rpm-package? I have krb5-libs-1.3.4-5 installed...

How to include - in the source RPM - all the files listed .. - Hi All, I create RPMs that get the files in %files from ClearCase, which means that I copy the files to a location the...

where to find legacyupdate versions of rpm and apt for RH9? - Hi Folks, I've been poking through fedoralegacy.org and getting ready to do some updates to my RH9 system. ..

RH9: newer versions of RPMs (with greater release numbers).. - Hi all, I'm using the Add/Remove applications utility (at least it's called so in the KDE menus) of the Red Hat 9. Whe...
       Soft32 Home -> Linux -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]