On Mon, Jun 11, 2012 at 11:06:46PM -0700, Waitman Gobble wrote: > Lars Engels <lars.eng...@0x20.net> wrote .. > > On Mon, Jun 11, 2012 at 10:07:22PM -0700, Waitman Gobble wrote: > > > Warren Block <wbl...@wonkity.com> wrote .. > > > > On Mon, 11 Jun 2012, Waitman Gobble wrote: > > > > > > > > > I ran pkg_libchk and it looks like a whole boatload of packages need > > > > > to be replaced, so I decided to skip to the chase and give the update > > > > > script a 'replace' option.. it checks the package version available > > > > > in > > > > > the packages directory on the freebsd site with what's installed, if > > > > > there's a newer version it downloads it and does the MD5 check, > > > > > creates an update.sh script to replace (the update script doesn't > > > > > actually do any udpating!) Anyhow, with 'replace' it will either > > > > > replace the existing or use the newer if available. I've been using > > > > > this script to update the system and it works pretty good for me, > > > > > except when I veer off path and get into ports like with my libpng > > > > > issue. :) > > > > > > > > There is a pkg_upgrade command in the bsdadminscripts, too. However, > > > > pkgng will change all that soon. > > > > > > Thanks, I tried pkgng a few months ago and it didn't seem to do > > > updates... but I recall many updates on the mail list so I'm sure it's > > > much different now, and works much better. I'll definitely check it > > > out. > > > > It does, but you need a working repository for it. > > I update ports in my sup file, along with the FreeBSD source. I > normally csup at least every two weeks. Is this what you mean by > working ports repository? > > I previously ran into a snag if the package version was different than > the ports version, and it seems occasionally packages lag a bit.
No, you need a package repository for pkgng, not the ports tree. You can try # setenv PACKAGESITE "http://pkgbeta.freebsd.org/`uname|tr '[:upper:]' '[:lower:]'`-`uname -r|cut -d. -f1`-` uname -m`/latest" # pkg update # pkg upgrade But please take note because pkg can also downgrade a package if the remote repository has an older version that the one that you have installed.
pgpSmzpvhnWnk.pgp
Description: PGP signature