Date: Sun, 3 Jun 2012 01:00:52 -0700 From: Waitman Gobble <gobble.wa@gmail.com> To: freebsd-questions@freebsd.org Subject: Updating packages Message-ID: <CAFuo_fzxSYbKVVH=Tq4jeVmkHhsNZzY79RueTmD18mX%2B-gy6AA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I have tried the available package update methods. It occurred to me to experiment with a different way. I am working on a package update script in Python as an alternate way to update installed packages with latest available on the FreeBSD web site. It parses the index page of the web site and compares the versions of installed packages. If their is a difference it downloads the package tbz file and performs an MD5 checksum, then writes the corresponding pkg_delete and pkg_add for the package into a file which can be edited and executed from the command line. It does not automatically update the packages, for example in some cases the script reports that an older version of Perl is a suitable replacement for the latest version. Also on my system there are like seventeen versions of doc_book package so it writes the pkg_delete for each installed version and pkg_add for the latest version. (in which case we would not really want to install it seventeen times). Does anyone have recollection of a negative experience using 'pkg_delete --force' to the old version and 'pkg_add' the replacement? Would you say it's generally a bad idea to first delete the package before adding the updated package, and instead recommend to install the updated package on top of the existing installation? My project is at the following URL: https://github.com/creamy/pkg_checkversion Thanks, Waitman Gobble San Jose California USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuo_fzxSYbKVVH=Tq4jeVmkHhsNZzY79RueTmD18mX%2B-gy6AA>