openPKG auf debian sarge (3.1)

Voraussetzungen

  • Minimalinstallation von Debian Sarge 3.1
  • Anpassen des Debian Paketmanagements
apt-get update
apt-get install package

Herunterladen der Pakete

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/*

Bootstrap openPKG

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

Ausgabe des Bootstrap Prozesses

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                 |
+-----------------------------------------------------------------------------+

Erste Schritte

/openpkg/bin/openpkg rpm -qa
openpkg-2.5.0-2.5.0
gpg-pubkey-63c4cb9f-3c591eda

Aliase

alias opm="/openpkg/bin/openpkg rpm"

OpenPKG Add Environment

#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`
}

Installation weiterer Pakete

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 
 
wissen/openpkg/debian/0_openpkg_auf_debian_fuer_apache_howto.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de