Skip to main content

Ubuntu

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

Настройка Алиасов

sudo apt install mlocate -y
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 apt update && \
sudo DEBIAN_FRONTEND=noninteractive apt full-upgrade -y \
  -o Dpkg::Options::="--force-confdef" \
  -o Dpkg::Options::="--force-confold"
sudo apt --fix-broken install -y
sudo apt autoremove -y
sudo apt autoclean -y
sudo apt-get check
sudo updatedb'

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

source ~/.bashrc

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

upd