More Scripting & Chapter 11

Slides:



Advertisements
Similar presentations
Software Package Management WeeSan Lee. Roadmap What is software package management? RPM YUM pkgtools.
Advertisements

Vulnerability Assessments with Nessus 3 Columbia Area LUG January
Red Hat Linux Network. Red Hat Network Red Hat Network is the environment for system- level support and management of Red Hat Linux networks. Red Hat.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 9: Implementing and Using Group Policy.
1 Web Server Administration Chapter 3 Installing the Server.
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW Understand the difference between service.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW  Understand the difference between service.
Installing Linux softwares Sirak Kaewjamnong. 2 Software packets  When Linux developers create their software they typically bundle all the executable.
Chapter 11 Compression, System Backup, and Software Installation.
Downloading & Installing Software Chapter 13. Maintaining the System Yum Pirut BitTiorrent Rpm Keeping Software Up To Date Up2date Red Hat Network Wget.
Module 10 – Linux Installations. Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously.
Managing Software using RPM. ♦ Overview In Linux, Red Hat Package Manager referred as RPM is a tool used for managing software packages and its main function.
Linux Operations and Administration
1 Web Server Administration Chapter 3 Installing the Server.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 9: Implementing and Using Group Policy.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory Chapter 12: Deploying and Managing Software with Group Policy.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
LPIC-1 TRAINING COURSE Topic 102: Linux Installation and package management.
Linux Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Hands-On Microsoft Windows Server 2003 Administration Chapter 2 Managing Windows Server 2003 Hardware and Software.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
Linux Package Management Dr. Michael L. Collard 1.
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
DB server + PHPMyAdmin ดรัสวิน วงศ์ปรเมษฐ์ สาขาวิชาเทคโนโลยีสารสนเทศ คณะ วิทยาศาสตร์ มรภ. บร. 19/10/56.
Install Software. UNIX Shell The UNIX/LINUX shell is a program important part of a Unix system. interface between the user & UNIX kernel starts running.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux June 2011 Kaplan University 1.
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux September 2012 Kaplan University 1.
Linux Overview Why Linux ? Not-so-ancient history –Torvalds, Linus Torvalds, 002 the Helsinki University, as a student, low budget, work home –rapid and.
Linux Services Configuration
Sys Admin Course Package Management Fourie Joubert.
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
Debian Package Management
11 DEPLOYING AN UPDATE MANAGEMENT INFRASTRUCTURE Chapter 6.
System Administration Application Management. ● A common task for a system administrator is the installation, updating and removal of software. Several.
The firmware-tools project Matt Domsch Michael Brown.
IT320 Operating System Concepts
Chapter 9 Managing Software
application into a Flatpak
COP 4343 Unix System Administration
CompTIA Server+ Certification (Exam SK0-004)
Overview – SOE PatchTT November 2015.
Overview – SOE PatchTT December 2013.
DHCP server & Client Objectives Contents
Ubuntu Working in Terminal
Lecture 13 RPM and its advantages.
RedHat Package Management
CompTIA Server+ Certification (Exam SK0-004)
Networking for Home and Small Businesses – Chapter 2
IS3440 Linux Security Unit 9 Linux System Logging and Monitoring
Lesson #7 MCTS Cert Guide Microsoft Windows 7, Configuring Chapter 7 Configuring Devices and Updates.
University of Texas Rio Grande Valley Systems Administration CSCI 6175
Unit 9 NT1330 Client-Server Networking II Date: 8/9/2016
Chapter 2: The Linux System Part 1
IS3440 Linux Security Unit 7 Securing the Linux Kernel
Configuring Internet-related services
IS3440 Linux Security Unit 8 Software Management
OPS235 PACKAGE MANAGEMENT
Networking for Home and Small Businesses – Chapter 2
The Linux Command Line Chapter 14
Perl in RPM-Land Dave Cross Magnum Solutions Ltd YAPC::Europe
Module 02 Operating Systems
Presentation transcript:

More Scripting & Chapter 11 Software and Configuration Management

Package Management Packing system make software installation as atomic as possible. If there is an error the package can removed or reapplied Maintains dependencies for other software and libraries 2 common package management systems for Linux are RPM (red hat package manager) and deb (Debian for Ubuntu)

Low Level Package Management Both the RPM and .deb packaging systems now function as dual-layer soup-to-nuts configuration management tools. At the lowest level are the tools that install, uninstall, and query packages. rpm options are --install, --upgrade, --erase, and --query

Low Level Package Management For example, the command rpm --query --all lists the packages installed on the system. # rpm --upgrade openssh-2.9p2-12.i386.rpm error: failed dependencies: openssh = 2.9p2-7 is needed by openssh-askpass-2.9p2-7 openssh = 2.9p2-7 is needed by openssh-askpass-gnome-2.9p2-7 openssh = 2.9p2-7 is needed by openssh-clients-2.9p2-7 openssh = 2.9p2-7 is needed by openssh-server-2.9p2-7

Where to find RPMs? Below is the list of rpm sites, where you can find and download all RPM packages. http://rpmfind.net http://www.redhat.com http://freshrpms.net/ http://rpm.pbone.net/

Low Level Package Management # rpm --query --whatrequires openssh openssh-askpass-2.9p2-7 openssh-askpass-gnome-2.9p2-7 openssh-clients-2.9p2-7 openssh-server-2.9p2-7 If you list multiple RPMs on the command line, rpm sorts them by dependency before installation. # rpm --upgrade openssh-*

High Level Package Management There are tools that know how to find packages on the Internet, analyze inter-package dependencies, and upgrade all the packages on a system. yum, the Yellowdog Updater, Modified, works with the RPM system. The Red Hat Network is specific to Red Hat Enterprise Linux and uses RPM. The Advanced Package Tool (APT) originated in the .deb universe but works well with both .deb and RPM packages

Package Management To simplify the task of locating and downloading packages To automate the process of updating or upgrading systems To facilitate the management of inter-package dependencies Red Hat Network (commercial) Yum (Red Hat, Fedora, CentOS) Apt-get (debian / ubuntu)

Package Management Concepts Release – the baseline, the target, snapshot of software package A “component” is a subset of the software within a release with core software blessed by the distributor and extra software made available by the broader community. An “architecture” represents a specific class of hardware. Repositories

Package Repositories Linux distributors maintain software repositories that work hand-in-hand with their chosen package management systems. The default configuration for the package management system usually points to one or more well-known web or FTP servers that are under the distributor’s control.

YUM YUM (Yellowdog Updater Modified) 1. Install a Package with YUM

1. Install a Package with YUM yum -y install firefox (force)

2. Removing a Package with YUM

3. Updating a Package using YUM

4. List a Package using YUM

5. Search for a Package using YUM

6. Get Information of a Package using YUM

7. YUM Updating System Check for Available Updates using Yum To find how many of installed packages on your system have updates available, to check use the following command. # yum check-update Update System using Yum To keep your system up-to-date with all security and binary package updates, run the following command. It will install all latest patches and security updates to your system. # yum update

8. List all Enabled and Disabled Yum Repositories The following command will display all enabled and disabled yum repositories on the system. # yum repolist all Install a Package from Specific Repository To install a particular package from a specific enabled or disabled repository, you must use --enablerepo option in your yum command. For example to Install PhpMyAdmin 3.5.2 package, just execute the command. # yum --enablerepo=epel install

YUM Repos

At Home Exercises 1) Find all files in your home directory which has read permission only to group AND for each file change its group permissions to  r-x (read and execute) [try it by chaining commands together using -exec option for find] 2)How would you recognize a process that is hogging resources?  Assume that the process needs to be killed. What signal would you send, and why? What if you needed to guarantee that the process died? 3)What is the difference between hard links and symbolic (soft) links? When is it appropriate to use one or the other? Give an example of creating a hard link between two files.