Ahojte,
ako sa instaluje taky less, ked neni v systeme ?
Mam nainstalovany nejaky docker image, nieco mi tam zacalo haprovat a tak, ze pozrime si logy. A akosi mi chyba less. Ako ho to tam nainstalujem ?
Info o systeme cat /etc/*-release mi vypise:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Skusal som apt-get install less a dostal som toto:
Reading package lists... Done Building dependency tree Reading state information... Done Package less is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'less' has no installation candidate
Skuste poradit
Ten image bude mať nejaký obmedzený, alebo žiadny sources.list.
Skús sudo apt update && sudo apt upgrade že čo sa stane.
dal som
a potom
a normalne to nainstalovalo. Mam less.
skvele. dakujem
...inxi --recommends...
sice to nie je odpoved na otazku, ale co tak "docker logs"?
a k otazke... potrebujes spravit apt-update.
Images zvyknu ako best-practice mazat apt subory kvoli velkosti layerov. Takze ked chces nieco doinstalovat, potrebujes najpr. update,