Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
xml.sax.expatreader.patch.README | 2024-08-21 06:23 | 2.2K | ||
xml.sax.expatreader.patch | 2024-08-21 06:23 | 1.1K | ||
pkgs.dat | 2024-08-21 06:23 | 185K | ||
alllist.txt | 2024-08-21 06:23 | 7.1K | ||
UninstallPackages.py | 2024-08-21 06:23 | 6.1K | ||
ReportPackages.py | 2024-08-21 06:23 | 1.0K | ||
README.html | 2024-08-21 06:23 | 15K | ||
README | 2024-08-21 06:23 | 10K | ||
PrerequisitePackages.py | 2024-08-21 06:23 | 3.2K | ||
PackageDB.py | 2024-08-21 06:23 | 8.2K | ||
MaskDonePackages.py | 2024-08-21 06:23 | 1.7K | ||
InstallPackages.py | 2024-08-21 06:23 | 6.3K | ||
HarvestPackages.py | 2024-08-21 06:23 | 12K | ||
DownloadPackages.py | 2024-08-21 06:23 | 2.0K | ||
BLFS-Deps.toc | 2024-08-21 06:23 | 444 | ||
AuditPackages.py | 2024-08-21 06:23 | 8.5K | ||
AUTHOR: "Chuck
Rhode" <crhode@excel.net>
DATE: 2004-04-29
LICENSE: Public Domain
SYNOPSIS: BLFS Package Dependencies.
DESCRIPTION:
Extract a database of software packages from the BLFS book and order
them in
prerequisite installation sequence.
ATTACHMENTS:
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/AuditPackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/BLFS-Deps.toc
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/DownloadPackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/HarvestPackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/InstallPackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/MaskDonePackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/PackageDB.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/PrerequisitePackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/ReportPackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/UninstallPackages.py
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/alllist.txt
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/pkgs.dat
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/xml.sax.expatreader.patch
* http://www.linuxfromscratch.org/hints/downloads/attachments/blfs-deps/xml.sax.expatreader.patch.README
PREREQUISITES:
* BLFS 5.0
* python 2.3
* patch for xml.sax.handler (included)
HINT:
Beyond Linux from Scratch 5.0 contains a list of a
couple hundred software packages with installation instructions and
code examples. ... would print the following report:echo linc > wishlist.txt
./PrerequisitePackages.py -W wishlist.txt
# Install packages in this order:All of the parameters are optional:
pkgconfig (pkgconfig-0.15.0)
GLib2 (GLib-2.2.3)
openssl (OpenSSL-0.9.7c)
linc (linc-1.0.3)
4 packages needed.
./PrerequisitePackages.py
-P pkgs.dat -W wishlist.txt -O wishlist.txt
... would expand the wishlist to include all prerequisites.grep -i linc alllist.txt
A version of alllist.txt
corresponding to BLFS 5.0 is
included in the tarball for this hint../DownloadPackages.py
-W wishlist.txt -O /usr/src/download.sh
... would place the script in the source library where it could be
executed like this:
cd /usr/src
chmod 755 download.sh
./download.sh
Here is what the script looks like:wget ftp://ftp.netbuddy.org/linux/pkgconfig-0.15.0.tar.gzAll of the parameters are optional:
wget ftp://ftp.gtk.org/pub/gtk/v2.2/glib-2.2.3.tar.bz2
wget ftp://ftp.openssl.org/source/openssl-0.9.7c.tar.gz
wget ftp://ftp.openssl.org/source/openssl-0.9.7c.tar.gz
wget ftp://ftp.gnome.org/pub/GNOME/sources/linc/1.0/linc-1.0.3.tar.bz2
./DownloadPackages.py
-P pkgs.dat -W wishlist.txt -O download.sh
./InstallPackages.py
-W wishlist.txt -O /usr/src/install.sh
... would place the script in the source library where it could be
executed like this:
cd /usr/src
chmod 755 install.sh
./install.sh
The script must be edited first, though. It contains install and
configuration code fragments from BLFS. Where alternates
are given, all options have been exhaustively expressed, and you must
elide those not relevant to your installation. As nice as it is not to
have to copy these code fragments from the book, it is not a substitute
for reading and understanding the sections where they are described../InstallPackages.py
-P pkgs.dat
-W wishlist.txt -O install.sh -S /usr/src
sed "s/ .*\$//" wishlist.txt
|
sed "s/\$/ /" | sed s/^/\^/ > patterns.txt
grep -f patterns.txt alllist.txt >> donelist.txt
... where wishlist.txt contains the list of packages just
recently
installed. ... would restrict the wishlist to exclude already installed packages../MaskDonePackages.py -W wishlist.txt -D donelist.txt -O wishlist.txt
./UninstallPackages.py
-P pkgs.dat
-W wishlist.txt -O uninstall.sh -S /usr/src
./HarvestPackages.py
-I index.xml
-P pkgs.dat
./AuditPackages.py -P pkgs.dat
-O rept.txt -A -C -U -S -L -I PkgName
-F
./ReportPackages.py -P pkgs.dat
-O rept.txt
ACKNOWLEDGMENTS:
* "Joern Abatz" <joern@abatz.de> for depsort hint for
BLFS 1.0 2003-09-23
* Zoltan for beta testing.
CHANGELOG:
[2004-04-19]
* First Release.
[2004-04-29]
* Fix DownloadPackages.py to write patch names correctly (per Zoltan).
* Fix PrerequisitePackages.py to suppress duplicates at outer level
(per Zoltan).
* Stipulate Python 2.3 or better.
* Correct location of attachments in this document.
* Amplify xml.sax.expatreader.patch.README to suggest that Python 2.3.2
is supported, too.