Portál AbcLinuxu, 13. května 2025 03:52
echo yes | yes-no-package-random-manager-dialog | pick-up-random-distro-from {rand 1..1000} | package-install <jmeno_balicku>
by melo stacit...
Jinak bych zkusil zacit tim, ze odhalim, co je to za OS...
Do you want to continue? [Y/n]pokud to druhe, tak jednoduse:
sudo apt-get install -y balicek
DEBIAN_FRONTEND=noninteractive apt-get -y install
Jinak, pokud toho nastavování má být více, tak doporučuju opustit sh skripty a vydat se cestou ansible. Tam jsou tyto věci vyřešeny, instalace balíků je funkční napříč distribucemi apod. Pochopitelně, pokud se má jednat o jednorázovou věc, učit se ansible nemusí dávat smysl.
# DEBIAN_FRONTEND=noninteractive apt-get -y install davfs2 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libneon27 The following NEW packages will be installed: davfs2 libneon27 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 269 kB of archives. After this operation, 628 kB of additional disk space will be used. Get:1 http://ftp.cz.debian.org/debian testing/main amd64 libneon27 amd64 0.32.1-1 [102 kB] Get:2 http://ftp.cz.debian.org/debian testing/main amd64 davfs2 amd64 1.6.0-1 [167 kB] Fetched 269 kB in 0s (623 kB/s) Preconfiguring packages ... Selecting previously unselected package libneon27:amd64. (Reading database ... 182777 files and directories currently installed.) Preparing to unpack .../libneon27_0.32.1-1_amd64.deb ... Unpacking libneon27:amd64 (0.32.1-1) ... Selecting previously unselected package davfs2. Preparing to unpack .../davfs2_1.6.0-1_amd64.deb ... Unpacking davfs2 (1.6.0-1) ... Setting up libneon27:amd64 (0.32.1-1) ... Setting up davfs2 (1.6.0-1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.32-4) ...
DEBIAN_FRONTEND=noninteractive
… Ale nevím jestli nevybere default, což může být no.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.