LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices



Reply
 
Search this Thread
Old 11-21-2010, 11:06 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

Rep: Reputation: Disabled
Question Installing a package with "-S" and few versions available


What if I install from some repo "pacman -S app" and there are few versions of "app" and I don't concretize it for pacman? What version will it install? I know that with "-U" I can tell it what version to install. But how does "-S" behave without concretizing?
 
Old 11-22-2010, 10:21 AM   #2
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
I'm sure that pacman will automatically install the one with the higher version or the one that has the newest time stamp. So if there's version 1.4.2, 1.4.1 and 1.2.6 all available, it should install 1.4.2 because its newer. However if the 1.2.6 package was made on 05/06/10 and 1.4.2 was made on 04/05/10, I think pacman would get confused and use the older version because it was packaged later. But then if you update the package, the newest one would be installed because it checks version numbers. I hope I answered your question!
 
Old 11-22-2010, 10:23 AM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
I think it also goes by the order of the repos in /etc/pacman.conf
placing repos up or down changes the priority I think...
 
Old 11-23-2010, 10:15 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by linus72 View Post
I think it also goes by the order of the repos in /etc/pacman.conf
placing repos up or down changes the priority I think...
I agree. This is why if you use the testing repo it needs to be listed first.
 
Old 11-24-2010, 09:58 AM   #5
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
AH! Totally forgot about the repo listing. Thanks for clearing that up guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help! Getting error while installing RDEL 5.2 "Unable to read package metadata......" waqasnaeem Linux - Newbie 1 05-03-2009 08:13 PM
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 07:33 AM
Please explain "386" vs. "686" versions vinoloco Linux - Newbie 4 04-05-2005 08:03 PM
RH keeps on giving me "Package Not Found" when installing PHP-related RPMs guest Linux - Newbie 4 03-25-2005 12:07 AM
Differences between the "free" and "paid" versions eraser Linux - General 1 08-03-2000 05:35 PM


All times are GMT -5. The time now is 04:57 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration