Fedora Linux Support Community & Resources Center
  #1  
Old 23rd February 2006, 08:38 AM
dansole Offline
Registered User
 
Join Date: Nov 2004
Posts: 27
multiple program versions installed

hi, I've been trying to figure out some problems and looking for possible conflicts due to mixing yum repos, I've noticed different versions of several programs installed.
from cat /var/log/rpmpkgs
I can see multiple versions of several programs just wondering if this can cause a problem, often the running program seems to be the older and trying to remove the older with rpm says it is not installed and trying to remove with yum tends to remove both.
eg.
mkisofs-2.01.1-9.0.FC4.1.i386.rpm
mkisofs-2.01.1-9.i386.rpm
module-init-tools-3.1-3.i386.rpm
module-init-tools-3.2-0.pre9.0.FC4.1.i386.rpm
mozilla-1.7.12-1.5.1.i386.rpm
mozilla-1.7.8-2.i386.rpm
mozilla-nspr-1.7.12-1.5.1.i386.rpm
mozilla-nspr-1.7.8-2.i386.rpm
mozilla-nss-1.7.12-1.5.1.i386.rpm
mozilla-nss-1.7.8-2.i386.rpm

thanks in advance for any help
Reply With Quote
  #2  
Old 23rd February 2006, 09:55 PM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862
I am curious about this too.
I was going to say I have 3 versions of moz installed, but it's actually 3 mozilla dir with only one executable.
That is 1.7.12, and rpm -qa |grep mozilla and the rpm log shows only 1.7.12...
mozilla-1.7.12-1.3.1
mozilla-devel-1.7.12-1.3.1
mozilla-nss-devel-1.7.12-1.3.1
mozilla-nspr-devel-1.7.12-1.3.1
mozilla-nspr-1.7.12-1.3.1
mozilla-nss-1.7.12-1.3.1

I have read that multiple versions of certain filetypes can co-exist, but reading all these "dependency hell" update posts there is definately a problem with others .

ANYBODY?
Reply With Quote
  #3  
Old 24th February 2006, 12:25 AM
dansole Offline
Registered User
 
Join Date: Nov 2004
Posts: 27
should we worry?

my biggest worry is with module-init-tools, I've had a few problems since upgrading it and the kernel last week, but to uninstall it and reinstall with yum removes both versions and heaps of dependencies.
I'm a bit worried about rpm -e --no deps with something that seems so critical.
removing and reinstalling by yum worked with evince after I got a black screen with every pdf after updating poppler.
Reply With Quote
  #4  
Old 24th February 2006, 01:14 AM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
It's not uncommon to have both 32-bit and 64-bit versions of the same package, assuming you're running x86_64. Try this command to further differentiate your packages. Pipe the output through grep to prune the list.

rpm -qa --queryformat "%{N} %{V} %{R} %{ARCH}\n"
Reply With Quote
  #5  
Old 24th February 2006, 08:11 AM
dansole Offline
Registered User
 
Join Date: Nov 2004
Posts: 27
thanks for your reply jcliburn,
what exactly is this command telling me?
how do I pipe it through grep?
I'm using on an i686, 32-bit not 64-bit (I'm pretty sure!)
please forgive my newbie-ness.
Reply With Quote
  #6  
Old 24th February 2006, 01:23 PM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
The command displays the package name, version, release, and architecture. Ordinarily, rpm -q shows only name, version, and release. To see which packages are actually installed, use one of the variants of the "rpm -q" command; don't just cat rpmpkgs.

"Piping through grep" means you feed the output of a command through grep looking for a particular regular expression (most commonly, a substring). For example, if I wanted to see only rpms that contain the letters "moz", I'd do this:

rpm -qa | grep moz

As a matter of practice, the only repos I keep enabled all the time are fedora base, updates-released, and extras. Everything else -- livna, atrpms, freshrpms, dag, whatever -- I keep disabled by setting "enabled=0" in the relevant /etc/yum/repos.d/repo_filename file. When I want something from one of those disabled repos, I use the "--enablerepo" flag on the yum command line. I've had very, very few dependency conflicts.
Reply With Quote
  #7  
Old 24th February 2006, 09:13 PM
dansole Offline
Registered User
 
Join Date: Nov 2004
Posts: 27
yum remove/ yum install only way?

So when I run rpm -qa --queryformat "%{N} %{V} %{R} %{ARCH}\n" | grep moz
I get the following result:

mozilla-nspr 1.7.8 2 i386
mozilla-nss 1.7.12 1.5.1 i386
mozilla 1.7.12 1.5.1 i386
mozilla 1.7.8 2 i386
mozilla-nspr 1.7.12 1.5.1 i386
mozilla-nss 1.7.8 2 i386

however when I look at the "about tab" on mozilla it says Mozilla 1.7.8
does this mean I have installed an update but because there are two versions installed it is still using the old one?

rpm -q mozilla returns:
mozilla-1.7.12-1.5.1
mozilla-1.7.8-2

rpm -e mozilla returns:
error: "mozilla" specifies multiple packages

locate mozilla-1.7.12 returns many mozilla-1.7.12 components so it seems to be installed but why isn't it running when I type mozillla?

I think yum remove mozilla/ yum install mozilla will probably work but I have this problem with many programs so It's going to take a long time and doing it to things like module-init-tools will be down-right scary.
Reply With Quote
  #8  
Old 24th February 2006, 09:23 PM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
Quote:
Originally Posted by dansole
yum remove/ yum install only way?

So when I run rpm -qa --queryformat "%{N} %{V} %{R} %{ARCH}\n" | grep moz
I get the following result:

mozilla-nspr 1.7.8 2 i386
mozilla-nss 1.7.12 1.5.1 i386
mozilla 1.7.12 1.5.1 i386
mozilla 1.7.8 2 i386
mozilla-nspr 1.7.12 1.5.1 i386
mozilla-nss 1.7.8 2 i386

however when I look at the "about tab" on mozilla it says Mozilla 1.7.8
does this mean I have installed an update but because there are two versions installed it is still using the old one?
Yep, you're still using the old one for some reason.

Quote:
rpm -q mozilla returns:
mozilla-1.7.12-1.5.1
mozilla-1.7.8-2

rpm -e mozilla returns:
error: "mozilla" specifies multiple packages

locate mozilla-1.7.12 returns many mozilla-1.7.12 components so it seems to be installed but why isn't it running when I type mozillla?
I don't know. That's a good question.

Quote:
think yum remove mozilla/ yum install mozilla will probably work but I have this problem with many programs so It's going to take a long time and doing it to things like module-init-tools will be down-right scary.
The yum remove/install cycle is probably your best bet. Or, alternatively you could try to rpm -e the older versions.
Reply With Quote
  #9  
Old 24th February 2006, 09:31 PM
dansole Offline
Registered User
 
Join Date: Nov 2004
Posts: 27
Do you think this thread describes a similar situation?
can you explain the commands used to fix the situation?

http://forums.fedoraforum.org/showthread.php?t=243
Reply With Quote
  #10  
Old 24th February 2006, 09:48 PM
jcliburn's Avatar
jcliburn Offline
Registered User
 
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
Looks plausible.

su -
(This command causes you to become root.)

rm -f /var/lib/rpm/__db.00*
(This command removes the rpm database containing duplicate package entries.)

rpm -e --allmatches --nodeps <list of files which indicated that where duplicate"
(This command removes duplicate rpms.)

rpm --rebuilddb
(This command rebuilds your rpm database without the duplicate packages.)

apt-get -f install
(This command fixes broken dependencies and installs necessary packages. You should use yum, not apt-get. "yum clean all" followed by "yum makecache" followed by "yum update")
Reply With Quote
  #11  
Old 24th February 2006, 09:53 PM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862
A Reminder

Quote:
hi, I've been trying to figure out some problems and looking for possible conflicts due to mixing yum repos, I've noticed different versions of several programs installed.
Check your repos
Reply With Quote
  #12  
Old 24th February 2006, 10:04 PM
dansole Offline
Registered User
 
Join Date: Nov 2004
Posts: 27
I have mucked around with repos a bit, tried the rpmforge one's for a while and have now gone back to fedora base etc,
does "mixing repos" mean mixing at the same time or mixing packages from different repos.
ie: I've probably got things installed from rpmforge but the repos are currently disabled
Reply With Quote
  #13  
Old 24th February 2006, 10:15 PM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
you run into problems mixing livina rpms with rpmforge rpms
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #14  
Old 24th February 2006, 10:59 PM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862
Quote:
does "mixing repos" mean mixing at the same time or mixing packages from different repos.
ie: I've probably got things installed from rpmforge but the repos are currently disabled
Maybe a little of both, but it's probably ok to have them all installed as long as just the fedora ones are
enabled by default and just enable the others "as you need them". If you use yumex you can enable disable
with a simple click.
I have many packages from many repos (including both rpmforge and livna) but they stay disabled until I
want to look for something.
As far as I know, ATRPM is stil a NO.
Reply With Quote
  #15  
Old 24th February 2006, 11:01 PM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862
Also ad fedorajim said, I don't mix them. I enable rpmforge or I enable livna (and I only occasionally use livna).
Make sure the updates testing and developement repos are disabled.
Reply With Quote
Reply

Tags
installed, multiple, program, versions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
there are multiple versions... drtv Using Fedora 9 18th December 2006 02:05 AM
multiple versions of Perl septentrion Using Fedora 1 19th October 2005 04:15 PM
Downgrading gcc - or maybe multiple versions? sebkg Using Fedora 7 12th August 2005 03:39 PM
Multiple versions of glibc Severin Using Fedora 2 18th January 2005 08:26 PM


Current GMT-time: 19:51 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat