upgrade

Upgrade PIP

Submitted by Fekete Zoltán on

Use this command to upgrade all packages in your local pip repository:

pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U

NOTE: You have to substitute pip command with the full name of your installed pip version on NetBSD, like this: pip3.7

Rebuild installed packages for a certain host in pkgsrc

Submitted by Fekete Zoltán on

You have a machine (a master host) with several idividually installed packages. You want those packages to be rebuilt somewhere else (slave host). Do this:

1. On the master host
# pkg_info -Q PKGPATH -a > pkgs_i_want_to_have
2. Copy the generated file to the slave host, and issue as root:
# cat pkgs_i_want_to_have | (while read pp ; do cd /usr/pkgsrc/$pp ; make && make bin-install ; done)

Simple enough, eh?