How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

766

How do I run custom command after ‘apt-get upgrade’ or ‘apt-get dist-upgrade’ on a Debian or Ubuntu Linux based system? How do I hook a script to apt-get command on my Ubuntu Linux server?

Read more…