DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th November 2015
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default What do these messages from pkg_add mean?

When I update -current and then run "pkg_add -u" I get many messages of this form:

lyx-2.1.4->2.1.4: ok
pwgen-2.07p0->2.07p0: ok

This seems to indicate that the packages in question have been updated to the same versions that already exist on the system. which doesn't make much sense. Then I thought perhaps it meant that there has been no change in the packages, but if I rerun "pkg_add -u" all the packages are now shown as "no change". So evidently the messages I see on the first run do indicate updates. There is certainly a lot of downloading and "extracting" going on.

I seem to be missing something elementary about the update process but I can't find it explained anywhere. This isn't a practical problem but I'd like to understand what the messages mean. Any pointers to relevant documentation?
Reply With Quote
  #2   (View Single Post)  
Old 13th November 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

These updates occur because the package signature changed. Typically, an underlying library was revised and these rebuilt packages point to, and use, the revised library. A package which does not get such an update will still point to the old library.

If it's a system library (/usr/lib), and you've upgraded with bsd.rd either from -release to -release or perhaps from -current to -current, the bsd.rd upgrade script doesn't ever remove old libraries.

If it's a third party library (/usr/local/lib), the pkg_add(1) tool will delete old libraries during an update only if no other package depends upon it. But more often, because there are packages depending on libraries, it won't delete it -- it renames it to a .lib-* package, so there can be multiple versions of the library in /usr/local/lib. These old libraries will be deleted only after you've updated packages so that nothing depends on the old library, and you've issued pkg_delete(1) with the -a option to delete any automatically installed package (such as dependencies) on which nothing now depends.

If you run # pkg_delete -a now, you may see a few .lib-* packages being deleted.
Reply With Quote
  #3   (View Single Post)  
Old 13th November 2015
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

Thanks very much - that's extremely clear and helpful.
Reply With Quote
Reply

Thread Tools
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
Getting console messages in xterm? spiderpig OpenBSD General 1 30th August 2015 12:17 AM
How to remove these messages ? sw2wolf FreeBSD General 4 11th July 2012 05:04 AM
strange kernel messages chavez243 FreeBSD General 4 19th August 2008 01:21 PM
error messages delboy FreeBSD Ports and Packages 16 6th June 2008 01:31 PM
Importing private messages? BSDfan666 Feedback and Suggestions 2 2nd May 2008 09:22 PM


All times are GMT. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick