Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 07:19:09 -0700 (PDT)
From:      "Waitman Gobble" <uzimac@da3m0n8t3r.com>
To:        Lars Engels <lars.engels@0x20.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: libpng.so.6 missing
Message-ID:  <1339510749.80992@da3m0n8t3r.com>
In-Reply-To: <20120612085533.GH5592@e-new.0x20.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--bound1339510749
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Lars Engels <lars.engels@0x20.net> wrote ..
> On Tue, Jun 12, 2012 at 12:31:29AM -0700, Waitman Gobble wrote:
> > Lars Engels <lars.engels@0x20.net> wrote ..
> > > On Mon, Jun 11, 2012 at 11:06:46PM -0700, Waitman Gobble wrote:
> > > > Lars Engels <lars.engels@0x20.net> wrote ..
> > > > > On Mon, Jun 11, 2012 at 10:07:22PM -0700, Waitman Gobble wrote:
> > > > > > Warren Block <wblock@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.
> > 
> > Thanks so much for the info. Do you have an idea about how long it would take
> to replace 700 packages?
> 
> Much faster than using ports! ;-)
> I can't tell, it depends on your internet connection, pkgbeta's current
> bandwidth, etc. But apart from the download it should be pretty fast.
> Extracting the txz and updating the sqlite database is faster than
> extracting the tbz and updating /var/db/pkg/*

Thanks, I'll check it out. I'm looking through the pkgng source code on git.
One thing - on the pkgbeta link the packages are a month old... before the libpng update I think... I assume that when pkgng is worked out (based on my search of recent mail list messages it's under development).. the package repository will be current. But at the moment it might be messy to implement on my machine.

Last night I think it took about 30 minutes to pkg_delete and pkg_add all packages, apart from downloading. The download and MD5 check happens before any updates so it's separate, I wasn't paying attention to the download time, which isn't really a concern in comparison.

-- 
Waitman Gobble
San Jose California USA


--bound1339510749--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1339510749.80992>