Home
|
UNIX
|
Code
|
Phisolophy
|
Practical
Slackware and pkgsrc
Pkgsrc installation
tar xzf pkgsrc-200XQX.tar.gz
mv pkgsrc /usr/
cd /usr/pkgsrc/bootstrap/
./bootstrap
(This may take a while)
- configure your shell,
vi ~/.bashrc
add,
PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin
MANPATH=$MANPATH:/usr/pkg/man
Pkgsrc configuration
- Add vulnerability list download to crontab (crontab -e),
0 3 * * * /usr/pkg/sbin/download-vulnerability-list >/dev/null 2>&1
- Audit packages each day,
cat > /etc/cron.daily/auditpkg <<EOF9
#!/bin/ksh
/usr/pkg/sbin/audit-packages
EOF9
chmod +x /etc/cron.daily/auditpkg
- Copy the example mk.conf,
cp /usr/pkg/etc/mk.conf /etc/
and add this inside the if condition,
MASTER_SITE_SOURCEFORGE=ovh.dl.sourceforge.net/sourceforge \
heanet.dl.sourceforge.net/sourceforge/ \
belnet.dl.sourceforge.net/sourceforge/
USA_RESIDENT=NO
PASSIVE_FETCH=YES
Ready to go
- Make your own packages (without bulk),
cd /usr/pkgsrc/sysutils/pwgen
bmake package
Note the 'b' for NetBSD make.
- Check it's working,
pwgen -A
- Check the package has been created,
ll /usr/pkgsrc/packages/All/
References