Arch linux what packages are installed

List that contains the last installed / upgraded packages in Arch Linux

How can I get a list of packages, that last installed / upgraded by pacman / yaourt in Arch Linux including the timestamp?

2 Answers 2

To get a list of last installed packages, you can run:

grep -i installed /var/log/pacman.log 

Example output of last installed packages:

[2015-08-24 15:32] [ALPM] warning: /etc/pamac.conf installed as /etc/pamac.conf.pacnew [2015-08-24 15:32] [ALPM] installed python-packaging (15.3-1) [2015-08-24 15:32] [ALPM] installed python2-packaging (15.3-1) [2015-08-25 10:37] [ALPM] installed ttf-ubuntu-font-family (0.80-5) [2015-08-25 10:43] [ALPM] installed ttf-google-fonts (20150805.r201-1) [2015-08-25 10:44] [ALPM] installed ttf-ubuntu-font-family (0.80-5) [2015-08-26 17:39] [ALPM] installed mozilla-extension-gnome-keyring-git (0.10.r36.378d9f3-1) 

To get a list of last upgraded packages, you can run:

grep -i upgraded /var/log/pacman.log 

Example output of last upgraded packages:

[2015-08-27 10:00] [ALPM] upgraded libinput (0.99.1-1 -> 1.0.0-1) [2015-08-27 10:00] [ALPM] upgraded python2-mako (1.0.1-1 -> 1.0.2-1) [2015-08-27 16:03] [ALPM] upgraded tdb (1.3.6-1 -> 1.3.7-1) [2015-08-27 16:03] [ALPM] upgraded ldb (1.1.20-1 -> 1.1.21-1) [2015-08-27 16:03] [ALPM] upgraded python2-mako (1.0.2-1 -> 1.0.2-2) 

To get a list of last installed or upgraded packages, you can run:

grep -iE 'installed|upgraded' /var/log/pacman.log 

Example output of last upgraded packages:

[2015-08-25 09:56] [ALPM] upgraded jdk (8u51-2 -> 8u60-1) [2015-08-25 10:37] [ALPM] installed ttf-ubuntu-font-family (0.80-5) [2015-08-25 10:43] [ALPM] installed ttf-google-fonts (20150805.r201-1) [2015-08-25 10:44] [ALPM] installed ttf-ubuntu-font-family (0.80-5) [2015-08-26 17:39] [ALPM] installed mozilla-extension-gnome-keyring-git (0.10.r36.378d9f3-1) [2015-08-27 10:00] [ALPM] upgraded curl (7.43.0-1 -> 7.44.0-1) [2015-08-27 10:00] [ALPM] upgraded gc (7.4.2-2 -> 7.4.2-3) [2015-08-27 10:00] [ALPM] upgraded kmod (21-1 -> 21-2) [2015-08-27 10:00] [ALPM] upgraded libinput (0.99.1-1 -> 1.0.0-1) [2015-08-27 10:00] [ALPM] upgraded python2-mako (1.0.1-1 -> 1.0.2-1) [2015-08-27 16:03] [ALPM] upgraded tdb (1.3.6-1 -> 1.3.7-1) [2015-08-27 16:03] [ALPM] upgraded ldb (1.1.20-1 -> 1.1.21-1) [2015-08-27 16:03] [ALPM] upgraded python2-mako (1.0.2-1 -> 1.0.2-2) 

Источник

Читайте также:  Wifi setup linux mint

List Installed Packages with Pacman on Arch Linux

Pacman is the tool for managing softwares on Arch Linux. It can use Pacman to install, remove, update individual software packages and also update the whole system if you want. You can also find out what software packages are installed on your Arch Linux system using Pacman.

In this article, I will show you how to generate a list of installed packages on your Arch Linux machine with Pacman. Let’s get started.

Why Generate a List of the Installed Packages?

Now you may ask, “hey what’s the point of generating a list of all the installed packages on Arch Linux?”. Well, it is mainly used to report bugs. You may need to send it to Linux experts if you face any problems with your Arch Linux machine that you can’t solve yourself.

You can also generate a list of packages installed on your system and install these in other Arch Linux machine using that list. That’s a lot easier than figuring out manually what is installed on one system.

Generating a List of Installed Packages using Pacman

You can generate a list of all the installed packages of your Arch Linux system with the following command:

You should see something like this.

The package information is divided into 2 columns. The first column is the name of the installed packages and the second column is the version of the installed packages as you can see in the green and blue marked sections respectively in the screenshot below.

The list is quite long. You may want to export it to a file or pass it to a pager like less.

To export the list to a file, run the following command:

NOTE: The list should be saved to my_arch_packages.txt file in your current working directory.

Listing Only the Later Installed Packages

You can also generate a list of packages that are installed later (after you installed Arch Linux) using Pacman.

To list later installed or explicit packages, run the following command:

Читайте также:  Alt linux настройка модема

To leave more system packages, you may filter out more packages with the following command:

To export the list to a file, just redirect the output as follows:

Generating a List of Only the Installed Package Names

You can generate a list of all the installed package name. In other words, only the first column using any of the following commands depending on your need:

$ pacman -Q | awk ‘
$ pacman -Qe | awk ‘
$ pacman -Qet | awk ‘

You should see the following outputs:

Also export it to a file packages.txt with one of the following commands depending on your need:

$ pacman -Q | awk ‘‘ > packages.txt
$ pacman -Qe | awk ‘‘ > packages.txt
$ pacman -Qet | awk ‘‘ > packages.txt

That’s how you list installed packages with Pacman on Arch Linux. Thanks for reading this article.

About the author

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.

Источник

Pacman Commands Cheat Sheet for Arch Linux

One uniqueness or key identifier of different Linux distributions is in the package manager they use to update, install, configure, and uninstall various targeted software packages. In Arch Linux, the package manager is called Pacman.

This tutorial seeks to walk you through some commonly used and unique Pacman commands that will make your Arch Linux interaction and experience easier and much more memorable.

It is highly advisable to be a root user or have Sudoer user privileges on your Arch Linux system to fully benefit from what the Pacman command has to offer.

Updating and Upgrading Arch Linux

If you only want to update the software database of your Arch Linux system, go with the following command:

Update Arch Linux

To update and upgrade your Arch Linux system, go with the following command:

Upgrade Arch Linux

Install Package(s) in Arch Linux

If you have a specific package called an apache web server in mind that you wish to install, it is advisable to first search for the availability of the package. This step is useful because some Linux OS distributions identify common packages differently.

Читайте также:  All about linux file system

Search for Package in Arch Linux

To install an identified package, adhere to the following command:

Supposing you have a local package or one that you have downloaded from a website and wish to install it, you need to adhere to the following command.

$ sudo pacman -U /path/to/your/installable/package

For all repo-based packages re-installation (during emergencies), implement the following command.

$ sudo pacman -Qnq | pacman -S -

Remove Package(s) in Arch Linux

To remove or uninstall a specific Arch Linux installed package, adhere to the following command.

$ sudo pacman -R name_of_package

To remove or uninstall an Arch Linux package together with its dependencies not tied to other active packages, reference the following command syntax:

$ sudo pacman -Rs name_of_package

To uninstall a specific Arch Linux package, remove its global configuration, and avoid its orphaned dependencies, use the following command syntax.

$ sudo pacman -Rns name_of_package

Query Package(s) in Arch Linux

You might wish to retrieve some information about an installed package. The command syntax to use is as follows:

$ pacman -Qi name_of_package

For the apache package we installed earlier, we can get the following info about it:

We can also query about an installable package and its associated dependencies via the command syntax:

$ sudo pacman -Sii name_of_package

To list installed packages, execute the command:

List Installed Packages in Arch Linux

Arch Linux Pacman Cheat Sheet

Following are the list of commonly used commands for the Pacman package manager in Arch Linux.

Command Description
sudo pacman -Syy Update package list
sudo pacman -Syu Update and upgrade all
sudo pacman -S pkgname Install specific package
sudo pacman -Ss keyword Find available packages
sudo pacman -Qs keyword Find available local packages
sudo pacman -Ql pkgname List all files from a package
Sudo pacman -Rsc pkgname Uninstall a package
sudo pacman -Qii pkgname List information on package

With the Pacman command cheat sheet, you should be comfortable enough to take your Arch Linux OS experience to the next level.

Источник

Оцените статью
Adblock
detector