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 |
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 Quote:
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. |
Quote:
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 |
Hi truthfatal
I think you are correct from man page Code:
--install-new install the latest packages only?. props |
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 |
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. |
Quote:
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... ;-) |
Quote:
;) |
All times are GMT -5. The time now is 01:23 PM. |