System Administration Application Management. ● A common task for a system administrator is the installation, updating and removal of software. Several.

Slides:



Advertisements
Similar presentations
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Advertisements

Packaging of EPICS-basedControl System Software
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
Package Managers What are they and why we use them.
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.
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
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.
Debian package manager Presenter: Lilian Wang. Install Software  先別管 package 了, 你有聽過重灌嗎 ?  Chrome/Firefox, Office, pietty, Notepad++, PCMan, LOL, …
Linux Operations and Administration
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.
CH 6 Configuring Server Hardware and power options.
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
Package Management How to use rpms. Topics The Problem of Software Installation Package Management Systems Using RPM Finding RPMs Building RPMs.
COSC 4750 Customizing and maintenance. Installing software Redhat/Fedora (and linux in general) has a package installer, called rpm Many programs will.
Review Security Hardening IPTables SELinux. Today Installations and updates – Rpm command and packages Apache “Issue Ownership”
Linux Package Management Dr. Michael L. Collard 1.
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
Linux Introduction Part 2. Finding Files find “start directory” -name "filename“ Find the file called "filename" on the filesystem starting the search.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Package Management.
Linux Installation and Administration Lesson 3 Tutor: George Papamarkos.
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.
1 What is a Kernel The kernel of any operating system is the core of all the system’s software. The only thing more fundamental than the kernel is the.
Linux Network Configuration Linux System Administration /etc/resolv.conf Tells the kernel which name server should be queried when a program asks to "resolve"
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
ITI Chris Uriarte ITI-481: Unix Administration Meeting 2 Rutgers University Center for Applied Computer Technologies Chris Uriarte, Instructor.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
© 2006 ITT Educational Services Inc. Linux Operating System :: Unit 3 :: Slide 1 Downloading and Installing Software yum pirut Bit Torrent rmp.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
Debian Package Management
Operated by Los Alamos National Security, LLC for NNSA U N C L A S S I F I E D Slide 1 Institutional Install of Red Hat Enterprise Linux From One CD In.
Linux Basics Part 2. VIM Editor vi improved Installed on most Linux machines Can be a bit confusing at first... o Cheat sheets FTW Other popular editors:
RPM101: A gentle intro to creating your own packages Richard Keech Red Hat Asia-Pacific.
Lesson 13 PROTECTING AND SHARING DOCUMENTS
Installing Applications in FreeBSD
Chapter 9 Managing Software
Installing and Learning Software
RPM.
Installation of MySQL Objectives Contents Practical Summary
Guide to Linux Installation and Administration, 2e
CIT 470: Advanced Network and System Administration
Packaging with RPM Tom Lapp September 5, 2007 CINLUG
Linux Command RTFM: rpm(8) & yum(8)
Installing and Learning Software
What are they? The Package Repository Client is a set of Tcl scripts that are capable of locating, downloading, and installing packages for both Tcl and.
COP 4343 Unix System Administration
BIF713 Managing Disk Space.
Single Sample Registration
Managing Software.
The Linux Operating System
Ubuntu Working in Terminal
June 2011 David Front Weizmann Institute
Lecture 13 RPM and its advantages.
Lesson 13 PROTECTING AND SHARING DOCUMENTS
More Scripting & Chapter 11
RedHat Package Management
DHCP, DNS, Client Connection, Assignment 1 1.3
University of Texas Rio Grande Valley Systems Administration CSCI 6175
Tanner Lovelace Triangle Linux Users Group 11/Jan/2003
IS3440 Linux Security Unit 8 Software Management
OPS235 PACKAGE MANAGEMENT
FreeBSD ports & packages
Perl in RPM-Land Dave Cross Magnum Solutions Ltd YAPC::Europe
Presentation transcript:

System Administration Application Management

● A common task for a system administrator is the installation, updating and removal of software. Several ideas exist to make that an easier job

Application Management ● Most linux distributions have some sort of package manager, which allows for easier installation, removal and updating of software. ● They also typically have some sort of dependency checking, allowing administrators to know about dependencies between packages, and (with some package managers) to handle automatically those dependancies

./configure; make; make install ● The traditional approach to UNIX application installation ● Application is shipped in a "tarball" file ● The tarball file is unpacked with the tar command, then make is used to compile and install the application

Tarball Demonstration ● Download the sample tarball from the website ● Execute the following commands: tar -xzvf magicrescue tar.gz cd magicrescue /configure make su make install

Tarball Limitations ● How do I uninstall this package? Sometimes there's a make uninstall ● What packages are installed on my system? ● How do I keep those packages up to date?

The RedHat Package Manager ● RPM is the default package manager for Red Hat Linux systems. ● It deals with.rpm files, which contain the actual programs as well as various bits of meta- information about the package: what it is, where it came from, version information and info about package dependencies.

RPM Commands ● rpm -ivh Installs (-i) packages. The -vh causes rpm to be verbose about what it is doing and to print hash marks (#) as it is installing packages ● rpm -Uvh Updates (-U) packages.

RPM Demo ● Download the sample RPM file from the website ● Install it with the following two-line command (notice the continuation on the first line): rpm -ivh checkinstall-1.6.0\ -3.el5.rf.i386.rpm

RPM Commands ● rpm -q Queries information about a particular installed package. ● rpm -qi Get more information: who packaged the rpm, where it came from, info about what it is ● rpm -qip Get information about an uninstalled.rpm file. ● rpm -qR get package dependencies

RPM Commands ● rpm -qf Which package owns a file ● rpm -q --filesbypkg Which files are installed in a package

RPM Commands ● You can combine the query commands: rpm -qiRp --filesbypkg Query the uninstalled rpm file, reporting information on the package, what dependencies it has and what files it will install.

Exercises ● Which package owns /usr/bin/ssh ● What other files come in that package? ● What dependencies does that package have? ● Who packaged that package?

RPM Shortcomings ● While RPM gives information about package dependencies, it doesn't do anything to help you resolve those dependencies: if package Foo requires package Bar, and package Bar requires package Baz and package Fnord (version 2.1 or later), rpm will tell you that information, but it won't help you install the dependencies. ● Someone has to package a program as an RPM. A piece of software you want may not be packaged.

yum Yellow Dog Updater Modified ● Overcomes the first of RPM's shortcomings by locating and installing packages that meet dependencies ● Yum can work with a wide variety of software repositories (http, ftp, local files) and pull in the latest version of a package from all of them ● Yum also has plugins for special purposes (RHN)

Listing packages ● Listing installed packages yum list installed [packageglob] ● Listing packages available but not installed yum list available [packageglob] ● List available updates yum list updates ● List packages recently added to repositories yum list recent

Installing and updating packages ● Install a new package from the repository yum install packageglob ● Update packages from the repository yum update [packageglob] If you leave off the package names, all packages needing updates will be updated ● Upgrade packages (including replacing obsolete packages – theoretically can upgrade version) yum upgrade [packageglob]

Cleaning up after yum ● Delete the cached packages yum clean packages ● Eliminate yum's header files yum clean headers ● Remove all of yum's files and force it to download new ones: yum clean all

yum configuration files ● /etc/yum.conf – main config file ● /etc/yum.repos.d, /etc/yum/repos.d – directories containing repository description files – Description files are named somereponame.repo – Contain information about how you reach the repository (http, ftp, etc.), whether to use GPG keys, and (if used) the GPG key location

Where's Red Hat Network? ● Red Hat Network support is implemented through a yum plug-in rather than as a repository (see /etc/yum/pluginconf.d). ● This allows each machine to see a unique repository with its own set of packages based on the channels you've selected for it or its group ● Also allows Red Hat to shut you off when you haven't paid your subscription fee

Pirut – graphical package manager ● Appears in Gnome Applications menu as “Add/Remove Software” ● Using either Browse, List or Search views: – Check packages to install – Uncheck packages to uninstall – Click “Apply”

RHEL 4 and earlier -- up2date ● up2date [pkgname] will install or update a particular package, handling dependencies (between repositories, if necessary) ● up2date -u will update every package on a system ● The --dry-run flag to any up2date command will show you what up2date would do before doing it

yum/up2date registration ● Yum and up2date require that you have registered your system with RH to do updates ● The RHEL Group on campus provides a bootstrap script that will register a system to use the campus proxy server ● up2date-config allows you to configure manually ● rhn_register will also register a system

yum/up2date and signed packages ● By default, yum and up2date require that packages be gpg signed and that you have the public key of the signer ● RHEL comes with the default Red Hat keys ● The RHEL Group bootstrap script installs keys for local packages ● You can also install keys manually rpm -ivh public-keyfile

Why sign packages? ● This gives you some indication that the rpm you have downloaded was actually packaged by the person who claims to have packaged it ● That trust only goes as far as how rigorously you believe in the public keys

Exercises ● What command would you run to update ssh? ● What command would you run to update everything on your system?

APT – another option ● APT is used in Debian and Debian-derived distros (like Ubuntu) apt-get update [updates apt database] apt-get install packagename apt-get remove packagename apt-get -u upgrade [upgrades all packages] ● Some distros call apt-get aptitude ● There is also a graphical front-end for APT called Synaptic

Building RPM Files ● The good way: rpmbuild – Requires the creation of a spec file containing information about the package ● The lazy way: checkinstall – Builds directly from a generic tarball – Doesn't have all of the information of an RPM built from a spec file, but it's simple and quick

checkinstall Demo ● Back to the magicrescue directory: cd ~/magicrescue /usr/local/sbin/checkinstall [ answer the prompts... ] rpm -i --nodeps /usr/src/redhat/\ RPMS/i386/magicrescue i386.rpm ● Verify the installation with rpm -qi magicrescue man magicrescue /usr/local/bin/magicrescue