Run a full-upgrade for LXC template
This commit is contained in:
parent
e659a0eb1e
commit
0eea33d04e
|
@ -45,16 +45,19 @@ tar xzf /tmp/latecommand.tar.gz -C /tmp/
|
||||||
## Update repositories
|
## Update repositories
|
||||||
apt update
|
apt update
|
||||||
|
|
||||||
## ensure to install aptitude
|
## Ensure to install aptitude
|
||||||
apt install -y aptitude
|
apt install -y aptitude
|
||||||
|
|
||||||
## ensure to remove useless x11 packages
|
## Ensure to have an up to date system
|
||||||
|
aptitude full-ugrade -y
|
||||||
|
|
||||||
|
## 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
|
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'
|
aptitude -y purge '~c'
|
||||||
|
|
||||||
## clean downloaded and list of packages
|
## Clean downloaded and list of packages
|
||||||
aptitude clean
|
aptitude clean
|
||||||
rm -f /var/cache/apt/*.bin
|
rm -f /var/cache/apt/*.bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue