DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th May 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default *pkg removal .. when is it an obligatory step?

Hi everybody !

Can you help me decide what situation(s) a complete removal of packages is a wise and necessary step before an upgrade (current- , i386) ? .. someone -I recall- described such a step as an overkill .. so when is it nothing but an overkill ? and when is it an obligatory step to a clean and stabe system?

( In fact, -laught at it if you feel so- I never did an upgrade without first removing all packages , until yesterday : I upgraded and sysmerged then did a simple pkg_add -u .. it took some time .. it was all ok :-) .. )

Thanks for your help and support!

Last edited by daemonfowl; 7th May 2012 at 10:48 AM. Reason: grammar
Reply With Quote
  #2   (View Single Post)  
Old 7th May 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

You should never need to issue # pkg_delete /var/db/pkg/* under normal operating circumstances.

Individual packages may be deleted when they are no longer in use.

For "clean up" you may find the -a option may be helpful to delete automatically installed dependencies after deleting individual packages.
Reply With Quote
  #3   (View Single Post)  
Old 7th May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
what situation(s) a complete removal of packages is a wise and necessary step before an upgrade (current- , i386) ?
There are none.

pkg_delete(1) is provided for removing a package when it is no longer needed, but this has no relation to system updates.
Reply With Quote
  #4   (View Single Post)  
Old 7th May 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by daemonfowl View Post
.. someone -I recall- described such a step as an overkill ..
It was me. Note the text in red:
Quote:
Originally Posted by jggimi View Post
pkg_delete runs in perl, your operating shell should not effect it. However, if this was the root user, and not your personal userid, please be advised that you should always leave root's shell as one of the built-in shells, and never use a third party shell for that account.

We're not going to be able to help you with your failed pkg_delete without an actual problem report -- please refer to the "perfect newbie" thread we've sent you to some half a dozen times or so.

You did not need to delete your packages. # pkg_add -iu was all that was needed to upgrade any installed packages with newer signatures residing at your $PKG_PATH.
Reply With Quote
  #5   (View Single Post)  
Old 7th May 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

jgimmi & ocicat, thank you very much !!
Ocicat , you said : none .. even in a case like when the packages are a few months old? maybe some packages would cease to exist or change names or something ..
Does it harm stability keeping older packages with an updated system? (eg. cases : when lacking enough time to update a mass of 16g packages .. or with some recurring network service problem .. etc)
Reply With Quote
  #6   (View Single Post)  
Old 8th May 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

OS libraries (/usr/lib) are not removed in upgrades, and remain forever.

Third party libraries (/usr/local/lib) will remain installed when they are in the dependency chain for an installed package. If there are newer versions of these libraries, the older libraries remain in the package database in /var/db/pkg/.libs* - so, you only need to delete older packages when you no longer need them.
Reply With Quote
  #7   (View Single Post)  
Old 8th May 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
Ocicat , you said : none .. even in a case like when the packages are a few months old?
None means none.

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
phpMyAdmin 3.4.0 is a "huge step" J65nko News 0 12th May 2011 07:19 PM
Removal of BIND from FreeBSD base system J65nko News 8 3rd April 2010 10:02 PM


All times are GMT. The time now is 02:18 AM.


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