How to list all installed packages

1

Packages with various ABRT add-ons and plug-ins either begin with “abrt-addon-”, or “abrt-plugin-”. To list these packages, type the following at a shell prompt:

~]# yum list abrt-addon\* abrt-plugin\* Loaded plugins: product-id, refresh-packagekit, subscription-manager Updating Red Hat repositories. INFO:rhsm-app.repolib:repos updated: 0 Installed Packages abrt-addon-ccpp.x86_64 1.0.7-5.el6 @rhel abrt-addon-kerneloops.x86_64 1.0.7-5.el6 @rhel abrt-addon-python.x86_64 1.0.7-5.el6 @rhel abrt-plugin-bugzilla.x86_64 1.0.7-5.el6 @rhel abrt-plugin-logger.x86_64 1.0.7-5.el6 @rhel abrt-plugin-sosreport.x86_64 1.0.7-5.el6 @rhel abrt-plugin-ticketuploader.x86_64 1.0.7-5.el6 ...
0 0
2

Question: I want to find out what packages are installed on my CentOS box, so that I can replicate all the installations on another computer. Is there a way to get a full list of all RPM packages that I installed since I set up my initial CentOS system?

When you want to create a new server which has exactly the same set up as any existing server X, you need to find out what packages have been installed on server X. Also when you are trying to migrate your old Linux system to to a freshly installed newer OS release, you need to keep track of previously installed package list. In other times, you may just want to know what packages you installed from a specific third-party repository.

If you are running CentOS or RHEL system, there are a few ways to get a list of all installed RPM packages, either from all available repositories or from a specific repository.

Method One

The easiest way to show all installed packages on CentOS is via rpm command. The...

0 0
3
H

ow do I list all installed packages using rpm command on CentOS/Suse/Fedora/RHEL/Scientific and Red Hat Enterprise Linux?


The

rpm

command is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. The latest version of Red hat and friends recommend using the

yum command

.

rpm command syntax

The rpm command has -a option to query (list) all installed packages.

List all installed packages using rpm -a option

Open the Terminal or login to the remote server using ssh client. Type the following command as root user:
# rpm -qa
Sample outputs:

filesystem-2.4.0-1 comps-extras-11.1-1.1 gnome-mime-data-2.4.2-3.1 glibc-2.5-12 atk-1.12.2-1.fc6 libICE-1.0.1-2.1 db4-4.3.29-9.fc6 elfutils-libelf-0.125-3.el5 ncurses-5.5-24.20060715 libsepol-1.15.2-1.el5 libcap-1.10-26 sqlite-3.3.6-2 pcre-6.6-1.1 gdbm-1.8.0-26.2.1 libsepol-1.15.2-1.el5...
0 0
4
...
0 0
5

Ubuntu 16.04 LTS introduced “Snap” packages, which are a great new way of installing apps. Snaps require different terminal commands–apt-get and dpkg will only allow you to install .deb packages the old way, not Snaps.

Snaps–which have the “.snap” extension–are more similar to containers. Applications in Snaps are self-contained, include all the libraries they need to function, and are sandboxed. They’ll install to their own directory and they won’t interfere with the rest of your system.

Not all apps are available as snaps just yet, but if you come across one that is, here’s how to install it.

Search for Available Snap Packages

To see a list of all available packages in the store, open a terminal and run the following command:

snap find

To search for a specific package by name, just add your search term to the end of the snap find command:

snap find name

For a more complete search–searching package descriptions as well...

0 0
6

> On Wed, May 11, 2016 at 6:58 PM, Bret Busby

[hidden email]

> wrote:

>> On 11/05/2016, Tom H

[hidden email]

> wrote:

>>> On Wed, May 11, 2016 at 2:05 PM, Bret Busby

[hidden email]

> wrote:

>>>> On 11/05/2016, Tom H

[hidden email]

> wrote:

>>>>> On Wed, May 11, 2016 at 12:47 PM, Ralf Mardorf

[hidden email]

>

>>>>> wrote:

>>>>>> On Wed, 11 May 2016 12:06:29 +0200, Tom H wrote:

>>>>>>>

>>>>>>> The best answer's the one that proposed an aptitude search because it

>>>>>>> returned the list of packages that were installed specifically rather

>>>>>>> than automatically.

>>>>>>

>>>>>> this isn't a good advice.

>>>>>>

>>>>>> A pitfall could be that some packages are installed with the

>>>>>> recommended packages, but others were not installed with recommended

>>>>>> packages. This is important even when installing the same Ubuntu

>>>>>>...

0 0
7
R: Find Installed Packages

Find Installed Packages

Description

Find (or retrieve) details of all packages installed in the specified libraries.

Usage

installed.packages(lib.loc = NULL, priority = NULL, noCache = FALSE, fields = NULL, subarch = .Platform$r_arch)

Arguments

Details

installed.packages scans the ‘DESCRIPTION’ files of each package found along lib.loc and returns a matrix of package names, library paths and version numbers.

The information found is cached (by library) for the R session and specified fields argument, and updated only if the top-level library directory has been altered, for example by installing or removing a package. If the cached information becomes confused, it can be refreshed by running installed.packages(noCache = TRUE).

Value

A matrix with one row per package, row names the package names and column names (currently) "Package", "LibPath", "Version",...

0 0
8

This is a small geek but some time its very useful and necessary also. It’s used to check whether the package is installed or not. And also we can check which version of package is installed.

1) To list installed software on your system.

Use the below both command to list installed software/package on your system.

[email protected]:~$ dpkg -l | more 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 account-plugin-aim 3.8.6-0ubuntu9.1 amd64 Messaging account plugin for AIM ii account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu1 all GNOME Control Center account plugin for single signon - facebook...
0 0
9

Using Package Commands to Manage Software Packages

The following procedures explain how to manage software packages by using package commands.

Become superuser or assume an equivalent role.

Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

Remove any already installed packages with the same names as the packages you are adding.

This step ensures that the system keeps a proper record of software that has been added and removed. Sometimes, you might want to maintain multiple versions of the same application on the system. For strategies on maintaining multiple software copies, see Guidelines for Removing Packages (pkgrm). For task information, see How to Remove Software Packages (pkgrm ).

Add a software package to the system.# pkgadd -a admin-file -d device-name pkgid ... -a admin-file

(Optional) Specifies an administration file...

0 0
10

Help out this community wiki - add up-to-date solutions.

Using dpkg, xargs, & apt-get

This command should accomplish the creation of a text file containing installed packages:

dpkg -l | awk '{print $2}' > package_list.txt

To accomplish the bulk installation of the listed packages you'll need to edit 'package_list.txt'. Remove the weird lines at the top of the file using a text editor. You can then use this command to install packages from the created file using:

xargs < package_list.txt apt-get install -y

Using apt-cache, xargs, & apt-get

Only use this method if you want all current packages to be installed using the list (which includes automatically installed, etc).

Output the response of 'apt-cache pkgnames' to a file we'll simply name "package_list.txt". You can accomplish this with:

apt-cache pkgnames > package_list.txt

Then when you want to install packages from "package_list.txt" you would use this command:

xargs
...
0 0
11

Use dpkg -l instead.

Example:

dpkg -l | grep '^ii' | grep skype

Outputs this:

alaa@aa-lu:~$ dpkg -l | grep '^ii' | grep skype ii skype 4.2.0.11-0ubuntu0.12.04.2 i386 client for Skype VOIP...

If you only want to extract the name and version, you can do this:

dpkg -l | grep '^ii' | grep skype | awk '{print $2 "\t" $3}'

Which will only print the second and third column from the above output, like this:

alaa@aa-lu:~$ dpkg -l | grep '^ii' | grep skype | awk '{print $2 "\t" $3}' skype 4.2.0.11-0ubuntu0.12.04.2

Of course, if you want to list all of your installed packages with their versions, and not only Skype, then just remove the grep skype part to make the command like this:

dpkg -l | grep '^ii' | awk '{print $2 "\t"...
0 0
12

Posted December 2nd, 2008 in Linux/Unix/BSD (Updated June 26th, 2009)

This post looks at how to list the installed packages with YUM from the command line for YUM based Linux distributions, such as CentOS and Fedora.

It's very simple:

yum list installed

This will result in a list of all installed packages in case-sensitive alphabetical order, like in the following example:

Loading "fastestmirror" plugin Loading "installonlyn" plugin Installed Packages Deployment_Guide-en-US.noarch 5.1.0-11.el5.centos.1 installed GConf2.i386 2.14.0-9.el5 installed GConf2.x86_64 2.14.0-9.el5 installed ImageMagick.i386 6.2.8.0-3.el5.4 installed ImageMagick.x86_64 6.2.8.0-3.el5.4 installed MAKEDEV.x86_64 3.23-1.2 installed NetworkManager.x86_64 1:0.6.4-6.el5 installed ORBit2.i386 2.14.3-4.el5 installed ORBit2.x86_64 2.14.3-4.el5 ...
0 0
13

Q. I am using CentOS how do I show all installed packages in Linux?

A. You need to use rpm command to display all installed packages in Linux.

Red Hat/Fedora Core/CentOS Linux

Type the following command to get list of all installed software
# rpm -qa | less

Debian Linux

Type the following command to get list of all installed software:
# dpkg --get-selections

Ubuntu Linux

Type the following command to get list of all installed software:
# sudo dpkg --get-selections

FreeBSD

Type the following command to get list of all installed software:
# pkg_info | less
# pkg_info apache

Use pkg_version command to summarizes the versions of all installed packages:
# pkg_version | less
# pkg_version | grep 'lsof'

OpenBSD

OpenBSD also use pkg_info command to display list of all installed packages or software:
# pkg_info | less
# pkg_info apache

...
0 0
14

Backups take some planning and there are several viable strategies. You will have to decide which method works best for you.

Be careful about "best way" , what works best for one person may not be best for another.

At the end of the day, the "best method" is one that has been tested and known to work. You need to test your backup strategy BEFORE you need it

Using images

One way is to simply copy and compress an image of your partitions. You can do this with several tools, anything from dd to partimage to clonezilla

partimage
clonezilla

The advantage of this strategy is that it is (relatively) easy and very complete. The disadvantage is that the back up images are large.

Smaller backups

You can make smaller backups by only backing up data and settings. There are several tools to do this, everything from dd to tar to rsync.

The key here is to know what you need to back up.

Advantage - Backups will be...

0 0