Ensure to update APT repositories

This commit is contained in:
Jeremy Gardais 2019-04-26 19:34:06 +02:00
parent 850aa4c472
commit e659a0eb1e
1 changed files with 7 additions and 4 deletions

View File

@ -42,16 +42,19 @@ tar xzf /tmp/latecommand.tar.gz -C /tmp/
# APT {{{
# ensure to install aptitude
## Update repositories
apt update
## ensure to install aptitude
apt install -y aptitude
# ensure to remove useless x11 packages
## ensure to remove useless x11 packages
aptitude remove -y x11-common libgl1-mesa-glx xauth libx11-6 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmuu1 libxpm4 libxrandr2 libxrender1 libxv1 libxxf86dga1 libxxf86vm1 libx11-data
# clean useless rc files
## clean useless rc files
aptitude -y purge '~c'
# clean downloaded and list of packages
## clean downloaded and list of packages
aptitude clean
rm -f /var/cache/apt/*.bin