apt-get update
apt-get install package
mkdir -p /home/install/BIN/deb3.1 && cd /home/install/BIN/deb3.1
wget -nv ftp://ftp.openpkg.org/release/2.5/BIN/ix86-debian3.1/*
mkdir -p /home/install/SRC && cd /home/install/SRC
wget -nv ftp://ftp.openpkg.org/release/2.5/SRC/PLUS/*
mkdir -p /home/openpkg && ln -s /home/openpkg /
cd /home/install/BIN/deb3.1
./openpkg-2.5.0-2.5.0.ix86-debian3.1-openpkg.sh --prefix=/openpkg
OpenPKG 2.5-RELEASE Binary Bootstrap Package, version 2.5.0
Built for prefix /openpkg on target platform ix86-debian3.1
++ hooking OpenPKG instance into system environment
++ fixating OpenPKG instance root directory "/openpkg"
++ extracting OpenPKG binary distribution
++ installing OpenPKG binary distribution
++ fixating OpenPKG instance filesystem hierarchy
++ post-processing OpenPKG bootstrap installation
+-----------------------------------------------------------------------------+
| Congratulations! |
| |
| You have successfully installed an OpenPKG 2.5-RELEASE instance |
| under prefix /openpkg on target platform ix86-debian3.1. |
| |
| For details about this OpenPKG instance, run any of the |
| following typical OpenPKG RPM query commands: |
| |
| $ /openpkg/bin/openpkg rpm -qa |
| $ /openpkg/bin/openpkg rpm -qi openpkg |
| $ /openpkg/bin/openpkg rpm -qlv openpkg |
| |
| To check the integrity of the entire OpenPKG instance, |
| run the following OpenPKG RPM verify command: |
| |
| $ /openpkg/bin/openpkg rpm -Va |
| |
| To install software packages into this OpenPKG instance, run |
| the following two OpenPKG RPM build commands for each package: |
| |
| $ /openpkg/bin/openpkg rpm --rebuild /path/to/foo-*.src.rpm |
| $ /openpkg/bin/openpkg rpm -Uvh /openpkg/RPM/PKG/foo-*.rpm |
| |
| To remove a software package later, just run: |
| |
| $ /openpkg/bin/openpkg rpm -e foo |
| |
| To remove the whole OpenPKG instance under prefix /openpkg, |
| just remove every package as shown above. As you finally |
| remove the package "openpkg", the OpenPKG instance itself |
| will be unlinked from the system and removed as well. |
| |
| Thank you for flying OpenPKG... |
| Ralf S. Engelschall |
| The OpenPKG Project |
| openpkg@openpkg.org |
+-----------------------------------------------------------------------------+
/openpkg/bin/openpkg rpm -qa
openpkg-2.5.0-2.5.0
gpg-pubkey-63c4cb9f-3c591eda
alias opm="/openpkg/bin/openpkg rpm"
#OpenPKG Add Environment
opa () {
root="$1"
if [ ! -d $root ]; then
echo "opa:ERROR: OpenPKG root directory $root not found"
return 1
fi
if [ ! -f "$root/etc/rc" ]; then
echo "opa:ERROR: root directory does not contain OpenPKG hierarchy"
return 1
fi
eval `$root/etc/rc --eval all env`
}
opa /openpkg
opm -Uvh gcc-4.0.2-2.5.0.ix86-debian3.1-openpkg.rpm \
binutils-2.16.1-2.5.0.ix86-debian3.1-openpkg.rpm
opm -Uvh autoconf-2.59-2.5.0.ix86-debian3.1-openpkg.rpm \
automake-1.9.6-2.5.0.ix86-debian3.1-openpkg.rpm \
libtool-1.5.20-2.5.0.ix86-debian3.1-openpkg.rpm \
m4-1.4.3-2.5.0.ix86-debian3.1-openpkg.rpm \
perl-5.8.7-2.5.0.ix86-debian3.1-openpkg.rpm
opm -Uvh curl-7.15.0-2.5.0.ix86-debian3.1-openpkg.rpm \
openssl-0.9.8a-2.5.0.ix86-debian3.1-openpkg.rpm
opm -Uvh mysql-4.1.14-2.5.0.ix86-debian3.1-openpkg.rpm \
readline-5.0.5-2.5.0.ix86-debian3.1-openpkg.rpm \
ncurses-5.5.20051015-2.5.0.ix86-debian3.1-openpkg.rpm