パッケージ管理
作成 : 2002/12/23
slackware のパッケージ
slackware にソフトウェアをインストールのは、"./configure" "make" "make install"の3段階だと思っていたら、バイナリパッケージとして配布されているものもあるらしい。 slackware のインストール CD に含まれているのは、このバイナリパッケージになる。 バイナリパッケージは、pkgtool でインストール / アンインストールができる。
pkgtool
"pkgtool"を実行すると、CUI メニューが表示される。
Slackware Package Tool
Welcome to the Slackware package tool.
Which option would you like?
Current Install packages from the current directory
Other Install packages from some other directory
Floppy Install packages from floppy disks
Remove Remove packages from floppy disks
View View the list of files contained in a packages
Setup Choose Slackware installation scripts to run again
Exit Exit Pkgtool
<OK> <Cancel>
Current
カレントディレクトリから、パッケージをインストールする。 カレントディレクトリに存在するバイナリパッケージファイルを探し、それをインストールするかどうか選択できるようになっている。
Package Name: ==<gcc-2.95.3-i386-2>==
gcc (Base GCC package with C support)
GCC is the GNU Compiler Collection.
This package contains those parts of the compiler collection needed to
compile C code. Other packages add C++, Fortran, Objective-C, and
Java support to the compiler core.
Size: Compressed: 1726 K, uncompressed: 4460 K
Yes Install package gcc-2.95.3-i386-2
No Do not install package gcc-2.95.3-i386-2
Quit Abort software installation completely
<OK> <Cancel>
Other
カレントディレクトリ以外から、パッケージをインストールする。 最初に、バイナリパッケージファイルを置いてあるディレクトリを入力できる。 CD-ROM からインストールしたい場合は、事前にマウントしておく。
Floppy
フロッピーディスクから、パッケージをインストールする。
Remove
インストールされているパッケージをアンインストールする。 インストールされているパッケージが一覧表示されるので、アンインストールしたいパッケージを選択する。
SELECT PACKAGES TO REMOVE
Please select the packages you wish to Remove. Use the spacebar to
select packages to delete, and the UP/DOWN arrow keys to scroll up and
down through the entire list.
[ ] aaa_base-8.1.0-i386-3 aaa_base (Basic Linux filesystem package)
[ ] acpid-1.0.1-i386-1 acpid (ACPI daemon)
[ ] apmd-3.0.2-i386-1 apmd (Advanced Power Management daemon)
[ ] bash-2.05a-i386-2 bash (sh-compatible shell)
[ ] bin-8.3.0-i386-2 standard utilities found in /bin and
[ ] bzip2-1.0.2-i386-1 bzip2 (a block-sorting file compressor)
....
<OK> <Cancel>
View
インストールされているパッケージの情報を表示する。 インストールされているパッケージが一覧表示されるので、情報を見たいパッケージを選択する。 パッケージ名・パッケージサイズ・インストールされたファイル名が表示される。
CONTENTS OF PACKAGE: aaa_base-8.1.0-i386-3
PACKAGE NAME: aaa_base-8.1.0-i386-3
COMPRESSED PACKAGE SIZE: 2 K
UNCOMPRESSED PACKAGE SIZE: 80 K
PACKAGE LOCATION: /var/log/mount/slackware/a/aaa_base-8.1.0-i386-3.tgz
PACKAGE DESCRIPTION:
aaa_base: aaa_base (Basic Linux filesystem package)
aaa_base:
aaa_base:
aaa_base: Sets up the empty directory tree for Slackware and adds an email t
aaa_base: root's mailbox welcoming them to Linux. :) This package should be
aaa_base: installed first, and never uninstalled.
aaa_base:
FILE LIST:
./
usr/
usr/bin/
usr/lib/
<EXIT>
installpkg / removepkg
installpkg / removepkg を使用すると、コマンドベースでパッケージのインストール / アンインストールができる。
installpkg パッケージファイル名 removepkg パッケージ名
パッケージの情報
インストールされたパッケージの情報は、/var/log/packages ディレクトリに作成される。