Vous êtes sur la page 1sur 16

Software Management in CentOS

Microsoft Windows EXE/MSI Linux Debian RedHat Slackware

www.distrowatch.com RPM (Red Hat Package Manager)


#ls l #uname i

nano 1 . 3 . 1 2 1 . 1 . i 3 8 6 . r p m
Application Name Version Compatible Hardware architecture

i386/i486/i586/i686/ix86 = 32bit X86_64/x64/amd64 = 64bit Noarch = 32/64bit Src =source

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 1 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

> DEB > RPM > TXZ

Cont... Software Management in CentOS


Finding out information about Linux software
www.linuxappfinder.com Category Sub Category Alternatives

http://lin-app.com Commercial software http://www.penguspy.com Games http://www.tinyurl.com/lincli - Command-line software http://www.google.com/linux-

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 2 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


Finding out software packages for installation
1. Check whether the software is currently installed with in the system. 2. Check whether the software package is available in the CentOS DVD. 3. Check whether the software package is available in the CentOS on-line repositories (Free Software Server) 4. If the software is commercial check the original software developers web site. Otherwise if the software is a free software use a RPM search engine to locate it.
Microsoft Approved Software; Windows Market Place

CentOS > Server > Repositories -9 Servers -18,000 software Ubuntu - 28,000 sofware

To manage software within the Linux system we have to always use the software manager program that comes with the YUM (Yellowdog Updater, Modified).

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 3 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


1. Finding out information about currently installed software packages
All the packages #yum --disablerepo=\* list | more Specific packages Eg: Nano #yum --disablerepo=\* list packagename Package information #yum --disablerepo=\* info packagename

Installed location #rpm ql packagename | more


Query Location

Software is owned by which RPM #which cal #rpm qf /usr/bin/cal


Query File

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 4 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS

#cat /etc/yum.repos.d/CentOS-Media.repo #mkdir /media/cdrom #mount /dev/cdrom /media/cdrom #ls /media/cdrom

Searching the DVD for software #yum --disablerepo=\* -enablerepo=c5-media list packagename #yum --disablerepo=\* -enablerepo=c5-media info packagename #yum --disablerepo=\* -enablerepo=c5-media -y install packagename
Yes to all

GUI Application > Sound & Video > K3B

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 5 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

2. Installing software from the CentOS DVD Insert DVD > Open DVD CentOS Requirements : DVD must be mounted to one of the following locations; /media/cdrom /media/CentOS /media /cdrecorder During the software management the DVD will be identified by the following name : C5 Media

Cont... Software Management in CentOS


Installing software from the CentOS Repositories

CentOS Repositories

1.

2.

3. 4.

5.

6.

Base repo; Includes all the software packages available in CentOS DVD Addons repo; Software packages not included in the CentOS DVD Extras repo; -Do CentOS plus repo; Software packages which are not compatible with RedHat Updates repo; Latest software packages for the base repo Contrib repo; Software packages contributed by CentOS users

1. 2.

3.

rpmforge repo; www.rpmforge.net EPEL repo; www.fedoraproject.org /wiki/EPEL elrepo repo; www.elrepo.org (Device drivers only)

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 6 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Official

3rd Party

Cont... Software Management in CentOS

Configuring CentOS repositories Currently configured repositories #yum repolist By default CentOS plus and Contrib repositories are not configured. We will have to manually enable them #cd /etc/yum.repos.d #ls -l #nano CentOS-Base.repo [centosplus] enabled=1 [contrib] enabled=1 Ctrl + O Enter Ctrl + X Verify #yum repolist

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 7 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS

Configuring 3rd party repositories All 3rd party repositories must be configured manually by downloading and installing a repository configuration RPM which can be found on the repository web site.

Download and save above 3 RPMs on the Desktop

After downloading the configuration RPM go to the downloaded locations and double-click on each RPM to install them #ls -l #yum repolist

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 8 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


The ELREPO repository will be by default disable so we will have to manually enable it. #nano elrepo.repo [elrepo] enabled=1 Save & Exit Verify #yum repolist

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 9 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


Searching the repositories for Software packages Eg: Mouse Pad software

Info #yum info packagename #yum info mousepad Install #yum y install packagename

Verify Application > Accessories > MousePad

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 10 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

#yum list packagename #yum list mousepad

Cont... Software Management in CentOS


Manually downloading and installing RPMs If you cant find the software within the repositories you can manually try to find it and you can manually download and install it. If the software is a commercial product better to visit the original software developers web site. If it is a free software we can try to locate it through a RPM search engine. Eg: Nero Linux Using a RPM search engine rpm.pbone.net www.nero.com

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 11 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


#ls l

#yum y localinstall nerolinux-4.0.0.x86.rpm --nogpgcheck


Yes to all Full RPM Name No digital signature

Verify Application > Sound & Video > Nero Linux express

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 12 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

After downloading the RPM go to the downloaded location.

Cont... Software Management in CentOS


Updating existing software Eg: tzdata (Time Zone Data)

Update #yum y update tzdata #yum list tz* Update all packages #yum check-update |

Microsoft Windows; Schedule Task

Linux Chronjok

more

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 13 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Check whether any updates are available #yum list tz*

Cont... Software Management in CentOS


Full update for all packages #yum -y update Updating software packages which are not available with in the repositories. Download the updated RPM go to the downloaded location and do the following #yum -y localupdate full rpm name --nogpgcheck Uninstalling software packages Eg: k3b #yum y remove packagename #yum y remove k3b

Verify Application > Sound & Video >

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 14 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


Universal binaries ; Any Linux can run or install Installing software packages using universal binaries These packages can be installed in any Linux version. Bourne shell text executable files (Universal binaries) Eg: Google Earth Linux Verify Universal binaries extensions #file googleearthlinux.bin .bin
File Name .run .bundle .sh .pl

Make the file as executable

6 r w U

4 r - G

4 r - O

7 r w x
U

5 r - x
G

5 r - x
O

#chmod 755 googleearthlinux.bin #ls l


Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 15 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Cont... Software Management in CentOS


Executing File #. /googleearthlinux.bin Verify Application > Internet > Google Earth
Install Path /opt/google-earth
Binary path (command) /usr/local/bin

Uninstalling a software package that was installed using a Universal Binary. The uninstalling script comes with the package and can be found on the folder where the software was installed #ls /opt/google-earth #/opt/google-earth/uninstall

Prepared by : Samantha Indika MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator, MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security + 16 Messaging, MCSA, MCSA + Security + Messaging, MCP

Samantha Indika

Vous aimerez peut-être aussi