Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 28-Oct-2014 | 40 | 4 | 3 | |
LICENSE | H A D | 28-Oct-2014 | 1.3 KiB | 29 | 22 | |
Makefile | H A D | 28-Oct-2014 | 489 | 23 | 16 | |
README | H A D | 28-Oct-2014 | 805 | 29 | 21 | |
README.md | H A D | 28-Oct-2014 | 745 | 28 | 20 | |
map_lib.c | H A D | 28-Oct-2014 | 2.7 KiB | 92 | 53 | |
map_lib.h | H A D | 28-Oct-2014 | 1.6 KiB | 48 | 11 | |
pkg-compare.8 | H A D | 28-Oct-2014 | 1.1 KiB | 70 | 57 | |
pkg-compare.c | H A D | 28-Oct-2014 | 4.6 KiB | 188 | 118 |
README
1pkg-compare.c 1.1 2014-02-05 2 3Copyright 2014 Waitman Gobble <ns@waitman.net> 4see LICENSE for details 5 6Usage: pkg-compare [options] new_path old_path 7 8This program reads local.sqlite in new_path and compares list of installed 9packages in local.sqlite in old_path. If a package is found in old_path which 10is not in new_path then the name of the port is printed, one per line. 11 12Command line switches: 13 -p prefix uninstalled packages with 'pkg install -Rf' 14 -m show manually installed packages only, no deps 15 16Upgrade Strategy: 17 18# mv /usr/local /usr/old-local 19# mv /var/db/pkg /var/db/old-pkg 20# cd /usr/ports/ports-mgmt/pkg 21# make 22# make install clean 23# cd /usr/ports/databases/sqlite3 24# make 25# make install clean 26# pkg-compare -p -m /var/db/pkg /var/db/old-pkg > upgrade.sh 27# yes | sh upgrade.sh 28 29
README.md
1``` 2pkg-compare.c 1.1 2014-02-05 3 4Copyright 2014 Waitman Gobble <ns@waitman.net> 5see LICENSE for details 6 7Usage: pkg-compare [options] new_path old_path 8 9This program reads local.sqlite in new_path and compares list of installed 10packages in local.sqlite in old_path. If a package is found in old_path which 11is not in new_path then the name of the port is printed, one per line. 12 13Command line switches: 14 -p prefix uninstalled packages with 'pkg install -Rf' 15 -m show manually installed packages only, no deps 16 17Upgrade Strategy: 18 19# mv /usr/local /usr/old-local 20# mv /var/db/pkg /var/db/old-pkg 21# cd /usr/ports/ports-mgmt/pkg 22# make 23# make install clean 24# pkg-compare -p -m /var/db/pkg /var/db/old-pkg > upgrade.sh 25# sh upgrade.sh 26 27``` 28