On Tue, Feb 19, 2008 at 01:07:25PM -0500, Juan Miscaro wrote: > I am working with a recent snapshot installation (090208) and I have > some questions regarding updating packages with pkg_add. > > > ... > 1. I am shown the following: > > Not updating .libs-curl-7.16.2, remember to clean it > Not updating .libs-db-4.2.52p11, remember to clean it > Not updating .libs-pcre-7.1, remember to clean it > Not updating .libs-png-1.2.18, remember to clean it > > How do I "clean it"?
You could remove those packages with something like # pkg_delete /var/db/pkg/.libs-curl-7.16.2 But make sure you have not compiled something without using the ports system which need those libs. > I have these files on my system. By "cleaning it" should I merely > delete the earlier version? If so, why doesn't pkg_add do it? At the time of updating those packages the shared libraries were still needed from other packages. Therefore those .libs-* packages which only contain the shared libs. > /usr/local/lib/libcurl.so.8.0 > /usr/local/lib/libcurl.so.6.0 > > /usr/local/lib/db4/libdb.so.4.2 > /usr/local/lib/db4/libdb.so.5.0 > > /usr/local/lib/libpcre.so.2.1 > /usr/local/lib/libpcre.so.1.1 > > /usr/local/lib/libpng.so.5.2 > /usr/local/lib/libpng.so.6.0 This are these old libs and their newer versions. > ... > 2. I am using the following incantation: > > # pkg_add -ui > > but the documentation [1] says to use: > > # pkg_add -ui -F depends -F updatedepends You could add -F alwaysupdate > However, the man page states that the first keyword is unsafe. > > What is the recommended procedure and why would I need to use special > keywords for forcing stuff? IMO the above looks good. For example package B depends on A and both need an update. You can't simply update A because there is another package (B) which depends on it and the dependancies doesn't match for the newer A. You can't simply update B because of missing dependancy either. Therefore you need to force the update. I hope I understood and explained this correct. > ... > 3. To serve remote systems, on my server I store installed packages > locally through the use of the PKG_CACHE variable. Thus, after a > packages upgrade, I am left with multiple versions of the same package. > > Is there any known method, besides manual deletion, that will clear out > the older versions? I don't know. > Thanks in advance, > > /juan > > > [1] http://www.openbsd.org/faq/upgrade42.html#Pkgup Regards, Markus