Unattended Upgrades Ubuntu

First:  Install the unattended upgrade package

sudo apt-get install unattended-upgrades

Edit this file accordingly

vim /etc/apt/apt.conf.d/50unattended-upgrades

Install the Update Notifier

apt-get install update-notifier-common

“If you want the script to automatically reboot when needed, you not only need to set Unattended-Upgrade::Automatic-Reboot "true", but you also need to have the “update-notifier-common” package installed. On minimal installations this is not installed by default and without it the automatic updater will never reboot and will not even tell you that you need to reboot manually if you have email notifications configured!

“The files in /etc/apt/apt.conf.d/ are evaluated in lexicographical order with each file capable of overriding values set in earlier files. This makes it insufficient to view the setting in /etc/apt/apt.conf.d/20auto-upgrades and why it is recommended to use apt-config.”


All About Composer

Composer was created to solve two main problems
Autoloading code
Third-party code

Update Composer
composer self-update

Find out where Composer Stores its files
composer config –list –global

Initialize composer on a directory
composer init

Search for packages in the command line
composer require


Remove Old linux Kernels

Find out which version of the kernel that you are running:
uname -r
sudo apt-get remove linux-image-4.4.0-72-generic
sudo apt-get remove linux-headers-4.4.0-72-generic

Of course replace 4.4.0-72-generic with your kernel version number.
cd /var/lib/initramfs-tools

Remote old kernel file from this folder
then run the following:

/usr/sbin/update-initramfs -u -k all