the pkg-config files need this substitution, whereas shebang lines like #!/usr/bin/perl do not. This decision completely depends on which packages are system-installed and which are installed using this method. install package_name_b, and manually decide about each occurence of /usr in the unpacked files, if it should be replaced by $PREFIX/usr or not. So usually I first download a deb file using apt-get download package_name. Vim -c '%s#/usr#'$PREFIX'/usr#gc' -c 'wq' "$file"Įcho "Leaving binary file $file unmodified" # interactively ask for each occurence, if it should be replaced # we're gonna replace some of them with $PREFIX/usrįiles=$(dpkg -contents $1 | grep '^-' | awk '' | sed 's/^.//' | sort | uniq) # go through all unpacked text files and search for occurences of /usr/. a directory you have write access toĪr p "$1" | tar xJ -C $PREFIX It uses this script I've called install (don't forget to chmod +x it): #!/bin/bash The method is partly manual, but I've done my best to make it convenient. It doesn't use deboostrap nor any package manager. I have a solution I've successfully used to install a BIG collection of cooperating software packages on a school Debian server, where I have no root access at all (not even for installing another package manger).
0 Comments
Leave a Reply. |