Linux_LPI-101_02
Linux_LPI-101_02
Linux_LPI-101_02
-
- 1 / 54
-
Flashcards
yum list | head -n 15
yum search "keyword"
yum install "paketname" (alle Repositories,mirrors in config Files werden durchsucht)
nicht möglich, mit command yumdownloader kann Paket heruntergeladen werden, danach mit rpm -i --force nochmals installiert werden.
yum update, ohne Paketname werden alle installieren Pakete aktualisiert.
yum remove "Paketname"
command rpm2cpio
/etc/yum.conf
rpm -qa --queryformat '%{SIZE} %{NAME}n' | sort -n (im queryformat wird gesagt welche Informationen ausgegeben werden sollen, n=neue Zeile nach jedem Paket, sort -n=numerische sortierung)
rpm -qa --last | tac (tac=Ausgabe in umgekehrter Reihenfolge)
yum info "Paketname"
ls; rpm -qi bash (Semicolon als command Trenner)
rpm -qa | more
und Bsp. Ping www.blick.ch && wget www.blick.ch (wget wird nur ausgeführt wenn der erste command erfolgreich war. Oder Bsp. grep -q '^user14' /etc/passwd || useradd -m user14 (user14 wird nur angelegt wenn der erst command fehl schlägt)