pkgin_all: script to auto-install all packages

Change-Id: I858c6d2b1c117c1fb5f702ab9c4921e86fb0cec5
This commit is contained in:
Ben Gras 2013-02-14 22:56:17 +00:00
parent 6a290814ae
commit d6be9725c9
5 changed files with 17 additions and 2 deletions

View file

@ -30,7 +30,7 @@ SUBDIR= add_route arp ash at backup banner basename btrace cal \
truncate tty udpstat umount uname unexpand \
unstack update uud uue version vol wc \
whereis which who write writeisofs fetch \
xargs yes zdump zmodem pkgin_cd \
xargs yes zdump zmodem pkgin_cd pkgin_all \
worldstone updateboot update_bootcfg
.if ${MACHINE_ARCH} == "i386"

View file

@ -0,0 +1,4 @@
SCRIPTS= pkgin_all.sh
MAN=
.include <bsd.prog.mk>

View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
echo "Updating package database.."
pkgin update
echo "Making available package list.."
packages="`pkgin av | awk '{ print $1 }'`"
echo "Made list of `echo $packages | wc -w` packages."
echo $packages | xargs -n50 pkgin -y in

View file

@ -316,6 +316,7 @@
./usr/bin/pax minix-sys obsolete
./usr/bin/ping minix-sys
./usr/bin/pkgin_cd minix-sys
./usr/bin/pkgin_all minix-sys
./usr/bin/postinstall minix-sys
./usr/bin/poweroff minix-sys
./usr/bin/prep minix-sys

View file

@ -8,7 +8,8 @@ list of commands. For example, 'pkgin install vim' installs the 'vim'
package, and 'pkgin available' will list all available packages.
To install packages from the installation CD: same, but use pkgin_cd.
To switch to the online repository, do 'pkgin update' again.
To switch to the online repository, do 'pkgin update' again. To install
all packages, do pkgin_all.
MINIX 3 supports multiple virtual terminals. Just use ALT+F1, F2, F3
and F4 to navigate among them.