LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 04-02-2007, 12:49 PM   #1
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
installpkg --install-new option


Hi

I find upgradepkg with the --install-new option but is there a similar way for installpkg to install the newest package among same packages ?. The current shows old and new files in its directories. I need to clarify that my partition is empty therefore upgradepkg is nonsense.
props
 
Old 04-02-2007, 01:09 PM   #2
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
I could be wrong, but I think the pkgtools don't really pay attention to the version number. So I imagine that upgradepkg would just replace the installed version with the version that you have in your /directory/of/upgrades/*.tgz
--install-new would just install packages that were not already installed instead of just ignoring them.
e.g.
Code:
# ls /var/log/packages | grep asdfg
{no results}
# upgradepkg /somedirs/asdfg.tgz
{message saying package skipped no package to upgrade}
# upgradepkg --install-new /somedirs/asdfg.tgz
{message saying installing previously uninstalled package asdfg
#
Quote:
I need to clarify that my partition is empty therefore upgradepkg is nonsense
I'm not sure what you mean here? are you trying to install two versions of the same package side-by-side (so you can use either asdfg-1.0 or asdfg-1.2) ?
If so maybe take a look at the "-root" option so that files from the older package aren't over written. (i've never used that option, so I can't say how well it works[files that were installed to /somedir/etc might be expected by the package to be in /etc )

More information would be helpful.
 
Old 04-02-2007, 01:28 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
Quote:
Originally Posted by props666999
The current shows old and new files in its directories.
If you mean that your Slackware-current mirror of choice has old and new packages in the slackware directories then I suggest you leave a message with the mirror maintainer, and switch to a better mirror. No good mirror has more than one version of any specific package in the slackware-current tree.

And indeed, upgradepkg does not check if the version of the package you are going to upgrade with is more recent than the already installed version of that package. So, you can just as easily "downgrade" any package...

Eric
 
Old 04-02-2007, 01:32 PM   #4
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Original Poster
Rep: Reputation: 30
Hi truthfatal

I think you are correct

from man page
Code:
 --install-new
              Normally upgradepkg only upgrades packages that are already installed on  the  system,  and  will
              skip  any  packages that do not already have a version installed.  If --install-new is specified,
              the behavior is modified to install new packages in addition to upgrading existing ones.
In Current many versions of the same package exist. How should i
install the latest packages only?.


props
 
Old 04-02-2007, 01:38 PM   #5
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Original Poster
Rep: Reputation: 30
Thank You Alien Bob

Yes indeed is a Slackware messed up mirror this one

In the official Slackware mirror there is only one version of each package as it should.

Thank you all

Props
 
Old 04-03-2007, 03:56 PM   #6
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
That is certainly a very interesting mirror there...

If you want something to automatically handle newer versions, you could look into slapt-get. That has version number parsing that will even pick up on the build numbers so that it should always know which package is the newer one.
 
Old 04-05-2007, 10:56 PM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Quote:
Originally Posted by MS3FGX
That is certainly a very interesting mirror there...

If you want something to automatically handle newer versions, you could look into slapt-get. That has version number parsing that will even pick up on the build numbers so that it should always know which package is the newer one.

That's fine and well right up to the point where a package version is downgraded in the official Slackware tree due to a serious flaw or some such. Granted, this doesn't typically (if ever) happen within a stable release tree, but it's quite common in the -current development tree.
With that said, one really shouldn't be using an automated tool to track -current anyway, as they're inviting disaster [1] by doing so, but lots of people (attempt to) do it anyway.

[1] I mean one big honkin' invitation to disaster - the door is open, music is playing, there's a keg on the front lawn... ;-)
 
Old 04-07-2007, 11:36 PM   #8
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Quote:
[1] I mean one big honkin' invitation to disaster - the door is open, music is playing, there's a keg on the front lawn... ;-)
As disasters go, that doesn't sound half-bad.


 
  


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
Debian install boot option Black Hawk Debian 2 12-06-2006 11:21 AM
which option do I choose on Fedora install screen? tm2383 Fedora 2 11-01-2006 06:43 AM
Install from live cd(no option for installation) meetashwin_16 Linspire/Freespire 8 10-12-2005 01:45 AM
installpkg: where's the install??? synaptical Slackware 7 08-06-2003 09:51 PM
Install via network boot option davee Linux - Networking 3 07-30-2003 08:06 AM


All times are GMT -5. The time now is 06:57 PM.

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