Remove cmd already runned with latecommand script
This commit is contained in:
parent
565304f72d
commit
bfc1660c68
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Some commands to apply to generate a "good" custom Debian (Stretch) template
|
||||
# Some commands to generate a "good" custom Debian template
|
||||
|
||||
# SSH {{{
|
||||
|
||||
|
@ -51,21 +51,6 @@ tar xzf /tmp/latecommand.tar.gz -C /tmp/
|
|||
|
||||
# APT {{{
|
||||
|
||||
## Update repositories
|
||||
apt update
|
||||
|
||||
## Ensure to install aptitude
|
||||
apt install -y aptitude
|
||||
|
||||
## Ensure to have an up to date system
|
||||
aptitude full-upgrade -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
|
||||
|
||||
## Clean useless rc files
|
||||
aptitude -y purge '~c'
|
||||
|
||||
## Clean downloaded and list of packages
|
||||
aptitude clean
|
||||
rm -f /var/cache/apt/*.bin
|
||||
|
|
Loading…
Reference in New Issue