Tag: Ubuntu

How to find out if a package is installed in Ubuntu

To find out if a particular package is already installed in Ubuntu, we can use the dpkg package manager. dpkg -l package-name Change package-name to the name of your package. For example, if you want to check if the nano editor is installed. dpkg -l nano If the package nano is installed, the result should be: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required…

Continue reading How to find out if a package is installed in Ubuntu

System Restart Required

*** System Restart Required *** – Automated Linux Kernel Patches

You keep seeing this message *** System Restart Required *** when you log in to Linux. In this article we will see what updates have triggered this message and how to apply them.

This message indicates the presence of the file /var/run/reboot-required. Ubuntu packages can trigger the creation of this file in their post-installation script postinst. A restart is usually required when an update to the Linux kernel has been installed. These are often security patches that only come into effect after reboot. The file /var/run/reboot-required.pkgs lists the…

Continue reading *** System Restart Required *** – Automated Linux Kernel Patches

How to get PHP mail() working on Ubuntu 16.04 / 17.04 / 18.04

In this article we are going to install and configure Postfix to allow our applications to use the PHP mail() function. Tested and working on Ubuntu 16.04 to 18.04.

  1. Install Postfix Let’s update the package database first. sudo apt-get update Install mailutils, which will automatically install Postfix. sudo apt install -y mailutils On the first Postfix configuration screen, select OK by pressing TAB and ENTER Select Internet Site and press ENTER. System mail name should be your domain name eg. example.com, press…

Continue reading How to get PHP mail() working on Ubuntu 16.04 / 17.04 / 18.04