How to list previously installed packages from the apt history.

This is how to get information about recently installed packages on Ubuntu. This is looking at the lowlatency package I just installed. 4.4 Thu Jun 04 jason@Yog-Sothoth 0: $ grep "lowlatency" /var/log/apt/history.log | sed "s/ /\n/gi"; Commandline: apt install linux-image-5.3.0-24-lowlatency Install: linux-image-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2), linux-modules-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2, automatic) Commandline: apt-get install –reinstall linux-image-5.3.0-24-lowlatency Reinstall: linux-image-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2) Commandline: … Read more

How to list certain installed packages on Debian Linux.

The dpkg command can be used to list all installed packages. I wanted to list the language packs installed with Firefox. So the command below is perfect. jason@Yog-Sothoth:~$ dpkg –list firefox-locale-* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============================-====================-====================-================================================================== ii firefox-locale-de 75.0+build3-0ubuntu0 amd64 German language pack for Firefox ii firefox-locale-en … Read more

Useful scripts for Arch Linux users.

This script will check for updates on an Arch Linux machine. This could be run as a daemon with CRON. #!/bin/bash export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DISPLAY=:0 tmpdb=/tmp/checkup-db dbpath=/var/lib/pacman mkdir /tmp/checkup-db && ln -s "${dbpath}/local" "${tmpdb}" fakeroot — yay -Syyb "${tmpdb}" –logfile /dev/null updates="$(yay -Qub "${tmpdb}" 2>/dev/null)" [[ -n "$updates" ]] && notify-send -t 299000 ‘New updates available’ … Read more

How to create a deb file from an already installed package on Ubuntu and Linux Mint.

An already installed package on a Debian based system may be repackaged into a Debian *.deb file for sharing with someone else, or for a backup if the user wishes. This is very useful. Also, it is possible to get information about the number of installed packages, and the number of Debian packages available for … Read more

How the Linux command line can create a graphical tree of package dependencies.

Image unknown. Some decoded SSTV image.
Image unknown. Some decoded SSTV image.

The Linux command line may be used to create a graphical display of package dependencies. This is good for visualizing what other components of Ubuntu are required for a certain package to operate. And the images look very cool when put on a website as well. A great Linux feature. Creating a graphical display of dependencies would be good to put on a website if a programmer has created a program and needs to display all of the dependencies required to run it. Or just to show off the abilities of the Linux command line in scripting.

Firstly, install the graphviz package.

ubuntu ~ $ sudo apt-get install graphviz

Then run this command to get information about bash.

ubuntu ~ $ apt-cache -o APT::Cache::GivenOnly=1 dotty bash | dot -T png > out.png

Read more

Getting started with Ubuntu 17.04 and setting up your system.

Getting started with the Ubuntu Linux distribution Getting started with Ubuntu is a lot of fun, this post will show you how to get setup after installation of the new Ubuntu 17.04 distribution. Download a copy of Ubuntu Kylin 17.04 here: http://cdimage.ubuntu.com/ubuntukylin/daily-live/current/. After the installation of Ubuntu Kylin, I could not get the networking to … Read more

How to install updates on various Linux and UNIX distributions.

The MS DOS operating system has quite a lot of command-line arguments that may be used to ease the task of file management. Sure, it is no match for the Linux shell, but the DOS operating system in its time. But then along came the easy to use Linux distributions such as Mandrake Linux and … Read more

How to list every installed package with the apt command on Debian.

The apt package manager allows management of all installed packages and the installation of new software on a Linux system. It also allows the retrieval of information about installed packages. To list all installed packages, run this command. This does not require sudo or su. jason$ apt list –installedjason$ apt list –installed This will be … Read more

How to list all non-free Linux packages installed on Linux Mint 18.

To list all non-free Linux packages that are installed on your Linux Mint system, use this one-liner. This prints out a list of all non-free packages that are installed on a system. jason@jason-virtual-machine ~ $ dpkg-query -W -f ‘${Section}/${Package}\n’ | grep -E ‘^(contrib|multiverse|non-free|partner|restricted)/’ | sort contrib/kernel/virtualbox-guest-dkms contrib/misc/virtualbox-guest-utils contrib/x11/virtualbox-guest-x11jason@jason-virtual-machine ~ $ dpkg-query -W -f ‘${Section}/${Package}\n’ | … Read more

Set up the package manager in FreeBSD 10.3 after installation.

The package manager in FreeBSD 10.3 is very effective and easy to use for setting up your FreeBSD 10.3 system. Here is how to install it. type this command as root. pkgpkg This will install the pkg package management system. Then, once that has completed, type this command to update the package repositories information. pkg … Read more

Search for a specific package with dnf on Fedora 22.

To find a specific package that offers a certain file, the whatprovides parameter to dnf will do what you wish. Here is an example, I am looking for all packages that provide the vim command. [jason@hackerbox Documents]$ dnf whatprovides "*/vim" Last metadata expiration check performed 26 days, 19:55:19 ago on Tue Sep 15 12:49:19 2015. … Read more

Searching for packages on an Ubuntu system with the aptitude command.

The aptitude command for Ubuntu may be used to search for packages. This makes it easy to find the appropriate package you are searching for. In this example, I am searching for the openvpn packages. ubuntu ~ $ sudo aptitude search openvpn p gadmin-openvpn-client – GTK+ configuration tool for openvpn (client) p gadmin-openvpn-client-dbg – GTK+ … Read more

New Windows package manager available in Powershell 5.0 This is quite revolutionary.

There is a new package manager available for Windows 8.1, this allows the installation of Windows software with the Powershell command line. Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved. PS C:\WINDOWS\system32> Install-Package -name Chrome WARNING: Skipping package provider provider ‘NuGet’– missing required option ‘Destination’ The package ‘xChrome’ comes from a package source … Read more

Useful bash commands and how to manage packages with dpkg on a Debian distro.

This is another way to find out who your user is. bash 07:15:16 Fri Jul 05 [homer@deep-thought $ who is linux homer pts/0 2013-07-05 19:10 (:0.0)bash 07:15:16 Fri Jul 05 [homer@deep-thought $ who is linux homer pts/0 2013-07-05 19:10 (:0.0) And this command lists all logged in users on your Linux system. bash 07:15:09 Fri … Read more

How to install a Debian *.deb file on Ubuntu and other useful Linux tips.

To install a Debian *.deb packages that you have downloaded, use this command. john@adeptus-mechanicus ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.debjohn@adeptus-mechanicus ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb This will install the Debian package. john@adeptus-mechanicus ~/Downloads $ sudo dpkg -i rxvt_2.6.4-14_i386.deb [sudo] password for john: Selecting previously unselected package rxvt. (Reading database … 281734 files and directories … Read more

How to get me-tv working on Linux Mint 13 Maya. Compiling from source with an older version.

The me-tv software for Linux Mint 13 Maya was not working for me, but I found out that if you download this tarball: https://launchpad.net/debian/+archive/primary/+files/me-tv_1.3.7.orig.tar.gz and install it by running the commands below. ./autogen.sh make make install./autogen.sh make make install Then the software will work. The new version 2.00 release is broken, the client-server model does … Read more

Cool miscellaneous wallpapers and tips for Debian/Ubuntu.

To install some nice tiling wallpapers for Debian or Ubuntu/Mint type this command. sudo apt-get install propaganda-debiansudo apt-get install propaganda-debian This will install the lovely Propaganda wallpapers, then in KDE you will be able to use the wallpapers right away. The images are installed in /usr/share/wallpapers. Install some more themes this way. sudo apt install … Read more