1.1 --- a/README.txt Sun Aug 26 20:45:41 2007 +0200
1.2 +++ b/README.txt Sun Aug 26 21:05:52 2007 +0200
1.3 @@ -66,22 +66,22 @@
1.4 ----------------------------------------
1.5
1.6 To get access to sources of packages beyond those provided by the basic
1.7 -distribution, edit the etc/apt/sources.list file inside the repository. The
1.8 +distribution, edit the /etc/apt/sources.list file inside the repository. The
1.9 user-path script can help you find the exact location of the file:
1.10
1.11 -user-path etc/apt/sources.list
1.12 +user-path /etc/apt/sources.list
1.13
1.14 Or with local defaults:
1.15
1.16 -./user-path etc/apt/sources.list
1.17 +./user-path /etc/apt/sources.list
1.18
1.19 And you can edit the file directly with a text editor (such as vi) as follows:
1.20
1.21 -vi `user-path etc/apt/sources.list`
1.22 +vi `user-path /etc/apt/sources.list`
1.23
1.24 Or with local defaults:
1.25
1.26 -vi `./user-path etc/apt/sources.list`
1.27 +vi `./user-path /etc/apt/sources.list`
1.28
1.29 Installing Packages
1.30 -------------------
1.31 @@ -106,3 +106,29 @@
1.32
1.33 This script will copy the file into the repository environment and run dpkg
1.34 with the -i (install) option.
1.35 +
1.36 +Using Packages
1.37 +--------------
1.38 +
1.39 +Unlike most packages installed in the usual way by the root user, the installed
1.40 +packages will not reside within a directory hierarchy rooted at / - the top of
1.41 +the filesystem. Instead, they will reside in a location such as the following:
1.42 +
1.43 +/home/me/.userinstall
1.44 +/tmp/packages
1.45 +
1.46 +(The precise location may be found by running the user-path script.)
1.47 +
1.48 +Consequently, to make use of the installed software, it may be necessary to
1.49 +edit your environment in a number of ways so that it may be located and
1.50 +correctly loaded, initialised and executed.
1.51 +
1.52 +Using Python Packages
1.53 +---------------------
1.54 +
1.55 +Installed Python packages may be made available to Python by defining the
1.56 +PYTHONPATH to include the directories usually searched by Python, but which
1.57 +are actually located within the repository. For example, with the Python 2.5
1.58 +site-packages directory:
1.59 +
1.60 +PYTHONPATH=`user-path /usr/lib/python2.5/site-packages/` python
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/user-path Sun Aug 26 21:05:52 2007 +0200
2.3 @@ -0,0 +1,14 @@
2.4 +#!/bin/bash
2.5 +# Usage: user-dirpath <path-inside-package-root>
2.6 +
2.7 +# Configuration:
2.8 +if [ -e userinstall-defaults ]; then
2.9 + source userinstall-defaults
2.10 +elif [ -e /etc/defaults/userinstall ]; then
2.11 + source /etc/defaults/userinstall
2.12 +else
2.13 + echo "No defaults found for userinstall."
2.14 + exit 1
2.15 +fi
2.16 +
2.17 +echo $PACKAGEROOT/$1