NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Necessity of rebuilding pkgsrc after updating the system



On 17 August 2015 at 15:47, Pongthep Kulkrisada <ptkrisada%gmail.com@localhost> wrote:
> So my question...
> Is there a SINGLE command to force rebuild all installed pkgsrc?


Never done it myself, but have you considered this:

pkg_info -Q PKGPATH -a > pkgs_i_want_to_have

pkg_info -a | sed 's/ .*//' | tail -r | while read p ; do pkg_delete $p ; done

cat pkgs_i_want_to_have | (while read pp ; do cd /usr/pkgsrc/$pp ;
make && make install ; done)


Taken from the wiki:
https://wiki.netbsd.org/pkgsrc/how_to_upgrade_packages/#index8h2


Home | Main Index | Thread Index | Old Index