Install Packages Centos

/ Comments off
  1. Centos Rpm Packages

In order to get R running on RHEL 6, we need to add an additional repository that allows us to install the new packages. The EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS. CentOS/RHEL¶ CentOS and RHEL don’t offer pip or wheel in their core repositories, although setuptools is installed by default. To install pip and wheel for the system Python, there are two options: Enable the EPEL repository using these instructions. On EPEL 6 and EPEL7, you can install pip like so.

The package is nothing but a software package, a collection of executables, libraries, manuals, etc., packaged in a single file. In Fedora, CentOS 5, RHEL 5 and above, Scientific Linux, Yellow Dog Linux, and Oracle Linux packages are formatted in a .rpm file.

This post is very simple yet useful for the system admin who is very new to CentOS / RHEL / Fedora system and their software package management.

List Installed packages on CentOS / RHEL / Fedora:

You can use the rpm command with -qa option to get the list of installed packages.

Output:

Cherry player download free. Another way to get a list installed packages with its detailed information.

For Fedora 22 and above, you can also use dnf utility instead of yum.

Output:

List installed Packages with time on CentOS / RHEL / Fedora:

You can use the below command get the list of packages with its time of installation.

Output:

Search for installed packages on CentOS / RHEL / Fedora:

Use the below command to see whether the particular package is installed on your system or not.

Output:

Alternate way,

Output:

Get details of Installed Package on CentOS / RHEL / Fedora:

Use the below command to get detailed information about a particular package.

Output:

OR

Output:

Get a list of created files from the package on CentOS / RHEL / Fedora:

Sometimes, you need to know what are the files created at the time of package installation.

Output:

Export Installed Packages list on CentOS / RHEL / Fedora:

Exporting packages could be useful when you want a similar set of packages to be installed on another machine.

OR

Restore installed packages on CentOS / RHEL / Fedora:

If you have a backup of the list of installed packages then simply use the following command on another machine to make it identical.

That’s All.

Now you have your shiny new CentOS operating system installed, one of the first things you may want to do is install some software on it. This document aims to bring together articles already on the CentOS Wiki relating to installing software on your system. It is recommended that new users take the time to read and understand this documentation.
The preferred way to install software on your CentOS system is to use the provided package management tools. CentOS uses the Red Hat Package Management (RPM) system and YUM as a front end to it. YUM is the preferred tool for installing software on your system. Online documentation for YUM is available here:
http://www.centos.org/docs/6/html/yum/ Links currently broken.
(Meanwhile see http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-yum.html)
YUM is a command line tool and, despite being extremely powerful, is very easy to use so users new to Linux need not be afraid of it. To use YUM to install software on your system you will need to be root. In it's basic form, YUM uses the following syntax:
So if we wanted to install Firefox, we would do:

Code: Select all

Note that package names are case sensitive and trying to install the package 'Firefox' would result in the message 'Nothing to do'. To find the correct spelling or capitalization, we can use the yum list command to list all matching packages:
and you can use YUM to automatically update your system to the latest versions by simply doing:

Code: Select all

Note that if you install software with YUM it will always install the latest version so you do not need to do an update after installing a new package.
Using YUM really is that easy.
There is a page with some rather nifty RPM and YUM tips & tricks here:
http://wiki.centos.org/TipsAndTricks/YumAndRPM
PackagesSee also:

Centos Rpm Packages


http://wiki.centos.org/PackageManagement/Yum
Groups
Another powerful feature of YUM is the concept of groups of software. This is software related to a task grouped together. For example, suppose you chose not to install support for printing or any office-based software when you installed CentOS. Having to find and install packages we need individually could be time consuming so we can simply choose to install the whole software group.
To see a list of groups, we can do:
(I won't list all the available groups - I'll leave that as an exercise for the reader to try)
and to install a software group, we would do:

Code: Select all

or
and we can use groupinfo to return information about packages that make up a particular group:

Code: Select all

Repositories
All of the above works fine for installing software that is provided as part of the CentOS system, but what about if you want to install a software package that isn't provided by CentOS? This is where 3rd party repositories come in. A vast amount of software has been packaged and is maintained by the packagers and placed into 3rd party software repositories such that it can be installed using YUM. Please read the Wiki page on repositories here:
http://wiki.centos.org/AdditionalResources/Repositories
RPMForge and ATrpms were two of the larger 3rd party repositories that provided software packages for CentOS. However, rpmforge has been largely unmaintained for about 3 or 4 years at the time of writing (late 2016) and is no longer recommended for use. There have been no security updates published for rpmforge packages in several years and what exists may contain unfixed security vulnerabilities. The situation with ATRpms is similar although with this repo, the mirrors that contain the content are often offline so it's tricky to install anything at all and probably lucky that you cannot since it too suffers the same problems as rpmforge - late or missing updates.
The EPEL repository is generally safe and is now easily installable on all supported CentOS versions by running yum --enablerepo=extras install epel-release as the epel-release package is now in the CentOS 'extras' repo to make life easier.
Other third party yum repositories include, nux-dextop which is the current best source for multimedia packages on CentOS and ELRepo which provides hardware support such as display and network drivers.
However, we need to be careful when enabling 3rd party repositories so that they don't conflict with CentOS packages. For example, they may contain newer versions of software packages that may break your system. For this reason we strongly advise not to update packages provided by CentOS with versions from 3rd party repositories as this may break things. Remember - if you break your system, you get to keep the pieces.
To get around this problem we can use a plugin for YUM called 'priorities'. Priorities allows us to rank repositories from 1 to 99 such that packages installed from a repository with a lower number (higher ranking) will never be overwritten or upgraded by a package from a repository with a higher number (lower ranking). For example, if the CentOS base and updates repositories have a priority of 1 and EPEL has a priority of 10, a package from EPEL will never be able to replace a package from CentOS base or updates.
If you are going to enable 3rd party repositories then it is highly recommended that you also install and configure the priorities plugin to manage them.
http://wiki.centos.org/PackageManagement/Yum/Priorities
What if you can't find an RPM package for CentOS / RHEL
Are you absolutely sure you've looked everywhere? If you're absolutely sure that an RPM for the software package you want to install doesn't exist then you have a number of options:
1) If there is a Fedora RPM package, then attempting to rebuild the corresponding source RPM package on your CentOS system may be a way to create a working binary RPM package.
2) Consider building your own RPM package. If you package the software yourself then it makes it far easier to handle updates.
3) As an absolute last resort you could compile the package from source. In an rpm-based distribution like CentOS you should avoid compiling from source whenever possible because doing so may break your system and it is highly recommended that you do NOT follow this route. Please read this Wiki article for an explanation as to why:
http://wiki.centos.org/PackageManagement/SourceInstalls