LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-26-2007, 06:13 PM   #1
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
Package Naming Conventions and upgradpkg


I recompiled Amarok, to include a new plug-in, and built a new Slackware package. In order not to conflict with the existing package, and also in an attempt to thwart upgradepkg from replacing my version with Pat's, I renamed my file, and upped the level #.

Pat's package: amarok-1.4.5-i486-1_slack11.0.tgz
Mine: amarok-1.4.5-i486-2_slack11.0.tgz

However, if I run upgradepkg --dry-run *.tgz, I still get the following:

amarok-1.4.5-i486-1_slack11.0 would upgrade: amarok-1.4.5-i486-2_slack11.0

Why, as the level on mine is higher.

Cheers.
 
Old 03-26-2007, 07:06 PM   #2
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
My guess is it is just poor wording and really means amarok-1.4.5-i486-1_slack11.0 would be upgraded with: amarok-1.4.5-i486-2_slack11.0. Upping the build number is all you have to due to make upgradepkg work.
 
Old 03-26-2007, 07:06 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,299

Rep: Reputation: Disabled
Upgradepkg does not care about version numbers - it can equally well be used to downgrade any package... this has always been it's behaviour, and will likely never change.

Eric
 
Old 03-27-2007, 12:48 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,763

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
To keep the package separate you need to change the name not the version.
 
Old 03-27-2007, 01:33 AM   #5
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Original Poster
Rep: Reputation: 36
So, basically, upgradepkg will assume that it has to perform an upgrade if any part of the "version" information, following the application name, is different from what's currently installed. There's absolutely no checking if the version and/or level is higher or lower. Is that correct.

Cheers.

Last edited by MQMan; 03-27-2007 at 01:35 AM.
 
Old 03-27-2007, 02:57 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,299

Rep: Reputation: Disabled
Quote:
Originally Posted by MQMan
So, basically, upgradepkg will assume that it has to perform an upgrade if any part of the "version" information, following the application name, is different from what's currently installed. There's absolutely no checking if the version and/or level is higher or lower. Is that correct.
Correct.

Eric
 
  


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
Folder Naming Conventions Hitboxx Fedora 4 07-12-2006 08:58 AM
The Naming Conventions nodisk Linux - Newbie 6 12-15-2005 05:15 AM
rpm package naming conventions (mandrake) Meriadoc Linux - Newbie 4 05-16-2004 06:34 AM
variable naming conventions patpawlowski Programming 6 02-25-2004 01:49 PM
Naming conventions ??? bigjohn Linux - Newbie 1 12-07-2003 10:25 AM


All times are GMT -5. The time now is 07:29 AM.

Main Menu
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