How to install software package on CentOS Redhat RHEL Fedora

How to install software package on CentOS Redhat RHEL Fedora

 

centos

 

 

1. Use RPM to install software package on CentOS

Download rpm package from Internet and we can install on our CentOS Server

rpm -ivh packagename.rpm

[root@localhost ~]# rpm -ivh webmin-1.620-1.noarch.rpm
warning: webmin-1.620-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c5 1: NOKEY
Preparing… ########################################### [100%]
Operating system is CentOS Linux
1:webmin ########################################### [100%]
Webmin install complete. You can now login to http://localhost.localdomain:10000/
as root with your root password.
[root@localhost ~]#

2. Use Yum to automatic installation

yum install packagename

[root@localhost ~]# yum install httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: ftp.cuhk.edu.hk
* extras: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package httpd.x86_64 0:2.2.15-28.el6.centos will be updated
—> Package httpd.x86_64 0:2.2.15-29.el6.centos will be an update
–> Processing Dependency: httpd-tools = 2.2.15-29.el6.centos for package: httpd-2.2.15-29.el6.centos.x86_64
–> Running transaction check
—> Package httpd-tools.x86_64 0:2.2.15-28.el6.centos will be updated
—> Package httpd-tools.x86_64 0:2.2.15-29.el6.centos will be an update
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Updating:
httpd x86_64 2.2.15-29.el6.centos updates 821 k
Updating for dependencies:
httpd-tools x86_64 2.2.15-29.el6.centos updates 73 kTransaction Summary
=====================================================================================================================================================================================================
Upgrade 2 Package(s)Total download size: 894 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): httpd-2.2.15-29.el6.centos.x86_64.rpm | 821 kB 00:04
(2/2): httpd-tools-2.2.15-29.el6.centos.x86_64.rpm | 73 kB 00:00
—————————————————————————————————————————————————————————————————–
Total 166 kB/s | 894 kB 00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Updating : httpd-tools-2.2.15-29.el6.centos.x86_64 1/4
Updating : httpd-2.2.15-29.el6.centos.x86_64 2/4
Cleanup : httpd-2.2.15-28.el6.centos.x86_64 3/4
Cleanup : httpd-tools-2.2.15-28.el6.centos.x86_64 4/4
Verifying : httpd-2.2.15-29.el6.centos.x86_64 1/4
Verifying : httpd-tools-2.2.15-29.el6.centos.x86_64 2/4
Verifying : httpd-tools-2.2.15-28.el6.centos.x86_64 3/4
Verifying : httpd-2.2.15-28.el6.centos.x86_64 4/4Updated:
httpd.x86_64 0:2.2.15-29.el6.centosDependency Updated:
httpd-tools.x86_64 0:2.2.15-29.el6.centos

Complete!
[root@localhost ~]#

Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>