What are Extra packages installed on a systems ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux
  • Red Hat Satellite 5.x

Issue

  • What does Extra packages installed on the system mean?
  • Why are some installed packages listed as Extra on a system?

Resolution

  • The packages installed on the system that are not available in any yum repository listed in the config file or currently subscribed/attached to the system are know as Extra Packages.
    For eg: Suppose we install a package coming from repo test1 and later this repo was removed from the system, this package from the installed package list is mapped with a repo which has not associated with the system so its an extra package for the system.
  • Following command can be executed on System to list all extra packages:
   # yum list extras
  • If using Red Hat Satellite-5.x go ahead and try the below listed API methods:

    • system.listSystemsWithExtraPackages: List all the clients with count of extra packages installed on them.
    • system.listExtraPackages:List extra packages for a particular system.
  • Check below example outputs.

 #  spacewalk-api --server=localhost --user=admin --password=****** system.listSystemsWithExtraPackages  "%session%" 
$result = [
            {
              'extra_pkg_count' => '4',
              'name' => 'host3.example.com',
              'id' => '1000010029'
            },
            {
              'extra_pkg_count' => '54',
              'name' => 'host1.example.com',
              'id' => '1000010028'
            },


 # spacewalk-api --server=localhost --user=admin --password=redrhn system.listExtraPackages "%session%" 1000010029   
$result = [
            {
              'version' => '0',
              'arch' => 'noarch',
              'name' => 'cee-ops-qvm-util',
              'release' => '1',
              'installtime' => '1/19/17 6:46:14 AM IST'
            },
            {
              'epoch' => '1',
              'version' => '2.4.6',
              'arch' => 'x86_64',
              'name' => 'facter',
              'release' => '1.el6',
              'installtime' => '1/19/17 6:46:10 AM IST'
            },
            {
              'version' => '1.2.6',
              'arch' => 'x86_64',
              'name' => 'mosh',
              'release' => '2.el6',
              'installtime' => '1/19/17 6:46:10 AM IST'
            },
            {
              'version' => '0.12',
              'arch' => 'x86_64',
              'name' => 'perl-Socket-GetAddrInfo',
              'release' => '1.el6',
              'installtime' => '1/19/17 6:46:08 AM IST'
            },
          ];

NOTE: Run this command on the satellite server, pass satellite orgadmin username and password along with the systemid of the systme for which package has to be listed out with the command.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.