A better way to upgrade packages

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Thu Aug 27 05:44:46 PDT 2009

Siju George wrote:

Can somebody update


to show that they can replace package one by one using


The problem with

# pkg_chk -g # make initial list of installed packages
# pkg_chk -r  # remove all packages that are not up to date and
packages that depend on them
# pkg_chk -a  # install all missing packages (use binary packages,
this is the default
# pkg_chk -as # install all missing packages (build from source)
is that the packages are deleted at once and one has to wait a long
time ( according to the order of updates ) to get some packages
For example I run samba and once the samba package is removed by -r
the users have to wait a long time till it is updated :-(
I usually run the pkg_chk -as (or pbulk) in a chroot to create packages 
and then install the packages in my real system.

  <3 the future  +++  RENT this banner advert  +++   ASCII Ribbon   /"\
  rock the past  +++  space for low CHF NOW!1  +++     Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

More information about the Users mailing list