05- Software Management in CentOS
Transcript of 05- Software Management in CentOS
-
7/29/2019 05- Software Management in CentOS
1/16
Samanth
aIndika
Software Management in CentOS Microsoft Windows
EXE/MSI
Linux Debian > DEB
RedHat > RPM
Slackware > TXZ
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
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP 1
i386/i486/i586/i686/ix86 = 32bit
X86_64/x64/amd64 = 64bitNoarch = 32/64bit
Src =source
-
7/29/2019 05- Software Management in CentOS
2/16
Samanth
aIndika
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 Gameshttp://www.tinyurl.com/lincli - Command-line software
http://www.google.com/linux-
2
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
http://www.linuxappfinder.com/http://lin-app.com/http://www.penguspy.com/http://www.tinyurl.com/linclihttp://www.google.com/linuxhttp://www.google.com/linuxhttp://www.tinyurl.com/linclihttp://www.penguspy.com/http://lin-app.com/http://lin-app.com/http://lin-app.com/http://www.linuxappfinder.com/ -
7/29/2019 05- Software Management in CentOS
3/16
Samanth
aIndika
Cont... Software Management in CentOS
Finding out software packages for installation1. 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-linerepositories (Free Software Server)
4. If the software is commercial check the original software developers website. Otherwise if the software is a free software use a RPM search engineto locate it.
To manage software within the Linux system we have to always use thesoftware manager program that comes with the YUM (Yellowdog Updater,Modified).
Microsoft Approved Software;
Windows Market Place
CentOS > Server > Repositories
-9 Servers
-18,000 software
Ubuntu
- 28,000 sofware
3
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
4/16
Samanth
aIndika
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
Software is owned by which RPM
#which cal
#rpm qf /usr/bin/cal
QueryLocation
QueryFile
4
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
5/16
Samanth
aIndika
Cont... Software Management in CentOS2. 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
#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
GUI
Application > Sound & Video > K3B
Yes to all
5
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
6/16
Samanth
aIndika
Cont... Software Management in CentOSInstalling software from the CentOS Repositories
CentOS Repositories
Official 3rd Party
1. Base repo;
Includes all the software packages
available in CentOS DVD
2. Addons repo;
Software packages not included in
the CentOS DVD
3. Extras repo;
-Do
4. CentOS plus repo;
Software packages which are not
compatible with RedHat
5. Updates repo;
Latest software packages for the baserepo
6. Contrib repo;
Software packages contributed by
CentOS users
1. rpmforge repo;
www.rpmforge.net
2. EPEL repo;
www.fedoraproject.org
/wiki/EPEL
3. elrepo repo;www.elrepo.org (Device drivers only)
6
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
http://www.fedoraproject.org/http://www.elrepo.org/http://www.elrepo.org/http://www.fedoraproject.org/ -
7/29/2019 05- Software Management in CentOS
7/16
Samanth
aIndika
Cont... Software Management in CentOSConfiguring 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=1Ctrl + O
Enter
Ctrl + X
Verify
#yum repolist7
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
8/16
Samanth
aIndika
Cont... Software Management in CentOSConfiguring 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
8
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
9/16
Samanth
aIndika
Cont... Software Management in CentOSThe ELREPO repository will be by default disable so we will have to manually enable it.
#nano elrepo.repo[elrepo]
enabled=1
Save & Exit
9
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
Verify
#yum repolist
-
7/29/2019 05- Software Management in CentOS
10/16
Samanth
aIndika
Cont... Software Management in CentOSSearching the repositories for Software packages
Eg: Mouse Pad software
#yum list packagename
#yum list mousepad
Info
#yum info packagename
#yum info mousepad
Install
#yum y install packagename
VerifyApplication > Accessories > MousePad
10
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
11/16
Samanth
aIndika
Cont... Software Management in CentOSManually 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 www.nero.com
Using a RPM search engine
rpm.pbone.net
11
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
http://www.nero.com/http://www.nero.com/ -
7/29/2019 05- Software Management in CentOS
12/16
Samanth
aIndika
Cont... Software Management in CentOS
#ls l
After downloading the RPM go to the downloaded location.
#yum y localinstall nerolinux-4.0.0.x86.rpm --nogpgcheck
12
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
Verify
Application > Sound & Video > Nero Linux express
Full RPM
Name
No digital
signatureYes to all
-
7/29/2019 05- Software Management in CentOS
13/16
Samanth
aIndika
Cont... Software Management in CentOSUpdating existing software
Eg: tzdata (Time Zone Data)
Check whether any updates are available
#yum list tz*
Update
#yum y update tzdata
#yum list tz*
Update all packages
#yum check-update | more
13
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
Microsoft Windows;
Schedule Task
Linux
Chronjok
-
7/29/2019 05- Software Management in CentOS
14/16
Samanth
aIndika
Cont... Software Management in CentOSFull 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
VerifyApplication > Sound & Video >
14
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
-
7/29/2019 05- Software Management in CentOS
15/16
Samanth
aIndika
Cont... Software Management in CentOSUniversal binaries ; Any Linux can run or install
Installing software packages using universal binariesThese packages can be installed in any Linux version. Bourne shell text executable files
(Universal binaries) Eg: Google Earth Linux
Verify
#file googleearthlinux.bin
Make the file as executable
15
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
Universal binaries extensions
.bin
.run
.bundle
.sh
.pl
File Name
r w -
U
r - -
G
r - -
O
6 4 4r w x
U
r - x
G
r - x
O
7 5 5
#chmod 755 googleearthlinux.bin
#ls l
-
7/29/2019 05- Software Management in CentOS
16/16
Samanth
aIndika
Cont... Software Management in CentOSExecuting File
#. /googleearthlinux.bin
Verify
Application > Internet > Google Earth
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
16
Prepared by : Samantha Indika
MCT, ACS, CEH, CCNA, BCS (Certificate) MCITP Enterprise Administrator,
MCITP Server Administrator, MCITP, MCTS, MCSE, MCSE + Security +
Messaging, MCSA, MCSA + Security + Messaging, MCP
Install Path
/opt/google-earth
Binary path (command)
/usr/local/bin