summaryrefslogtreecommitdiff
path: root/doc/pkg
blob: 0e8ca19d3f00128c9f6e1cae3a8f4ecad5506e64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
pkg - Package maintaining utility

Usage: pkg action [ arguments ]

action may be one of:

	add, install package
		fetch given package from the package_root and install it

	changelog package
		Show package's changelog (if available)

	changeroot source
		Change the default source on all packages to source
		Example: `changeroot ssh://kraftwerk/var/packages_root` will change
		the source of core to 'ssh://kraftwerk/var/packages_root/core'

	delete, remove package
		Remove the package from the local packages tree
		Note: This does not yet remove the symlinks

	doc command
		Show documentation on command, if available
		Note: command must be shipped by a package, of course

	info package
		Show information on package, like dependencies, version, etc

	list
		List all installed packages

	list-all
		List all available (both installed and not installed packages
		Hint: `diff <(pkg list) <(pkg list-all)` will show all packages
		that are currently not installed

	log package
		Show commit history for package

	status [ package ]
		Check for local changes to the packages files
		If no arguments is given, checks all installed packages

	update [ package ]
		retreive and install newest available version of package
		If no argument is given, updates all installed packages


~/.pkg.conf:
	Contains configuration vars

	syntax: VAR='argument'
	comments with "#" are supported

	PKG_ROOT
		the package root path
		Default: ssh://derf.homelinux.org/var/packages_root

	PDIR
		path for the local package tree
		WARNING: changing this will break everything. Don't do it.
		Default: $HOME/packages

	VCS_CMD
		Command to invoke the vcs
		Default: hg

	VCS_OPTIONS
		global options to invoke VCS_CMD with
		Default: --quiet

	CL_OPTIONS
		Options to invoke checklinks with
		Default: -q