Skip to main content

SUSE

Обновление SUSE OS                                                                                                                                 

Создание скрипта

tee -a ~/.bashrc << 'EOF'
# ------------------------------------------------------------------------------
# Prompt console
# ------------------------------------------------------------------------------
PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]$ '
# ------------------------------------------------------------------------------
# Bind Aliases
# ------------------------------------------------------------------------------
alias upd='
sudo zypper --non-interactive refresh && \
sudo zypper --non-interactive verify && \
sudo zypper --non-interactive list-updates --all && \
sudo zypper --non-interactive dup --auto-agree-with-licenses --allow-vendor-change
sudo zypper --non-interactive clean --all
sudo zypper ps -s
sudo updatedb'

alias hclean='cat /dev/null > ~/.bash_history && history -c'
# ------------------------------------------------------------------------------
EOF

source ~/.bashrc

Запуск обноления

upd