On Wed 2005.09.14 at 14:59 +0200, -f wrote:
> hmm, on Wed, Sep 14, 2005 at 11:04:56AM +0200, Marc Espie said that
> > > > > kripel> cd /var/db/pkg
> > > > > kripel> sudo pkg_add -r `ls`
> > > >
> > > > Yes, perfectly safe. But it doesn't do what you think it would...
> > > 
> > > you certainly have my attention ;-)
> > 
> > pkg_add -r is short for `replace'. and then you give it a list of
> > packages *you want to install*. and here you go giving it the list of
> > packages which are already installed.
> 
> ehm.  yes....  ok, i try to ask a more intelligent question ;-)
> 
> kripel> cd /var/db/pkg
> kripel> pkg_add -u `ls`
> kripel> sudo pkg_add -r $OUTPUT_OF_PREVIOUS_COMMAND
> 
> i don't have many packages, so i am not sure if this command
> figures out all the dependencies and stuff, but my question is,
> 1) is this safe, and 2) after an update of the OS, does this
> replace a package (if no new version available) with the newer
> one compiled against the newer libc?

you may wish to re-read pkg_add(8). no need to the "cd" and `ls` thing.
just do "pkg_add -u" then your last command. if you want, -current's (as
of sept 4) pkg_add(8) does this for you.

Reply via email to