• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D28-Oct-201440 43

LICENSEH A D28-Oct-20141.3 KiB2922

MakefileH A D28-Oct-2014489 2316

READMEH A D28-Oct-2014805 2921

README.mdH A D28-Oct-2014745 2820

map_lib.cH A D28-Oct-20142.7 KiB9253

map_lib.hH A D28-Oct-20141.6 KiB4811

pkg-compare.8H A D28-Oct-20141.1 KiB7057

pkg-compare.cH A D28-Oct-20144.6 KiB188118

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