Check Debian/Ubuntu Linux package version using apt-get/aptitude command

You can use the following command to check the version of a specific package installed on a Debian or Ubuntu Linux system using the apt-get command: apt-cache policy package_name Alternatively, you can use the following command to achieve the same result using the aptitude command: aptitude show package_name In both commands, replace package_name with the … Read more

Unix / Linux: Remove duplicate lines from a text file using awk or perl

You can use the following command to remove duplicate lines from a text file using awk: awk ‘!seen[$0]++’ file.txt > file_without_duplicates.txt Alternatively, you can use the following command to achieve the same result using perl: perl -ne ‘print unless $seen{$_}++’ file.txt > file_without_duplicates.txt These commands will read the contents of file.txt line by line and … Read more

How to install mysql server 5.7 on Ubuntu 16.04 LTS ( Xenial Xerus )

To install MySQL 5.7 on Ubuntu 16.04, follow these steps: Add the MySQL repository to the system: wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb Update the package list: sudo apt-get update Install the MySQL server package: sudo apt-get install mysql-server-5.7 Start the MySQL service: sudo systemctl start mysql Verify the MySQL installation: mysql -u root -p … Read more

apt Command Examples for Ubuntu/Debian Linux

The apt command is a powerful package management tool for Debian-based systems such as Ubuntu and Debian Linux. Here are some common apt command examples: Update the package list: sudo apt update Upgrade installed packages: sudo apt upgrade Install a package: sudo apt install package-name Remove a package: sudo apt remove package-name Purge a package … Read more

How to install Skype on Debian Linux 9

You can install Skype on Debian Linux 9 by following these steps: Add the Skype repository to your sources list: Open a terminal window Run the following command: echo “deb [arch=amd64] https://repo.skype.com/deb stable main” | sudo tee /etc/apt/sources.list.d/skype-stable.list Download and add the Skype GPG key to your system: Run the following command: wget https://repo.skype.com/data/SKYPE-GPG-KEY sudo … Read more