Pacman is Arch Linux's package manager, known for its speed and simplicity. We'll adapt it for our custom distro.
- Basic system installed
- Build tools available
-
Download pacman:
cd /sources wget https://sources.archlinux.org/pacman.git cd pacman
-
Configure:
./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var -
Build and install:
make make install
# Create pacman config
cat > /etc/pacman.conf << EOF
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
LogFile = /var/log/pacman.log
GPGDir = /etc/pacman.d/gnupg/
[core]
Server = file:///repo/core
[extra]
Server = file:///repo/extra
EOF- Exercise 1: Build and install pacman.
- Exercise 2: Configure pacman.conf for local repositories.
Proceed to Chapter 7.3 for package building.