Smartmontools unter Ubuntu ohne Postfix und MySQL installieren
Eine normale Installation der smartmontools unter Ubuntu 18.04 LTS führt dazu, dass auch der Mailserver Postfix installiert wird. Damit soll der SMART Daemon smartd E-Mails bei Problemen verschicken können. Wenn diese Funktionalität nicht gewünscht ist, kann durch eine Installation des Pakets mit der Option --no-install-recommends die Installation des Mailservers unterbunden werden.
Problem
Bei einer herkömmlichen Installation der smartmontools würden aufgrund des "recommends" auf das mailx Paket insgesamt 17 Pakete installiert werden:[1]
$ sudo apt install smartmontools Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: guile-2.0-libs libgc1c2 libgsasl7 libkyotocabinet16v5 libltdl7 libmailutils5 libmysqlclient20 libntlm0 libpython2.7 libpython2.7-minimal libpython2.7-stdlib mailutils mailutils-common mysql-common postfix ssl-cert Suggested packages: mailutils-mh mailutils-doc procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite sasl2-bin dovecot-common resolvconf postfix-cdb postfix-doc gsmartcontrol smart-notifier openssl-blacklist The following NEW packages will be installed: guile-2.0-libs libgc1c2 libgsasl7 libkyotocabinet16v5 libltdl7 libmailutils5 libmysqlclient20 libntlm0 libpython2.7 libpython2.7-minimal libpython2.7-stdlib mailutils mailutils-common mysql-common postfix smartmontools ssl-cert 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. Need to get 9,381 kB of archives. After this operation, 44.9 MB of additional disk space will be used. Do you want to continue? [Y/n] n Abort.
Lösung
Mit einer Installation per sudo apt install smartmontools --no-install-recommends wird nur ein Paket installiert:
$ sudo apt install smartmontools --no-install-recommends Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: gsmartcontrol smart-notifier Recommended packages: mailx | mailutils The following NEW packages will be installed: smartmontools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 464 kB of archives. After this operation, 1,774 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 smartmontools amd64 6.5+svn4324-1 [464 kB] Fetched 464 kB in 0s (1,206 kB/s) Selecting previously unselected package smartmontools. (Reading database ... 66167 files and directories currently installed.) Preparing to unpack .../smartmontools_6.5+svn4324-1_amd64.deb ... Unpacking smartmontools (6.5+svn4324-1) ... Processing triggers for ureadahead (0.100.0-20) ... ureadahead will be reprofiled on next reboot Setting up smartmontools (6.5+svn4324-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/smartd.service → /lib/systemd/system/smartd.service. Processing triggers for systemd (237-3ubuntu10.19) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for ureadahead (0.100.0-20) ...
Nach der Installation empfehlen wir die smartmontools Drive Database zu aktualisieren.
Einzelnachweise
- ↑ smartmontools (packages.ubuntu.com/en/bionic)
Autor: Werner Fischer Werner Fischer arbeitet im Product Management Team von Thomas-Krenn. Er evaluiert dabei neueste Technologien und teilt sein Wissen in Fachartikeln, bei Konferenzen und im Thomas-Krenn Wiki. Bereits 2005 - ein Jahr nach seinem Abschluss des Studiums zu Computer- und Mediensicherheit an der FH Hagenberg - heuerte er beim bayerischen Server-Hersteller an. Als Öffi-Fan nutzt er gerne Bus & Bahn und genießt seinen morgendlichen Spaziergang ins Büro.
|