CIT 470: Advanced Network and System Administration

Slides:



Advertisements
Similar presentations
1 Linux Networking and Security Chapter 2. 2 Configuring Basic Networking Describe how networking devices differ from other Linux devices Configure Linux.
Advertisements

Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Linux+ Guide to Linux Certification Chapter 12 Compression, System Backup, and Software Installation.
Post install; Live CD Chapter II / Part 1I. Post install After install completes, take out the install CD/DVD Reboot Check if boot loader is working properly.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
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.
UNIX ™ /Linux Overview Unix/IP Preparation Course June 9, 2013 Lusaka, Zambia.
Linux Operations and Administration
1 Web Server Administration Chapter 3 Installing the Server.
Linux+ Guide to Linux Certification
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 15 Installing and Using Windows XP Professional.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory Chapter 12: Deploying and Managing Software with Group Policy.
Tutorial 11 Installing, Updating, and Configuring Software
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.
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.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
Linux Package Management Dr. Michael L. Collard 1.
Installing Windows Vista Lesson 2. Skills Matrix Technology SkillObjective DomainObjective # Performing a Clean Installation Set up Windows Vista as the.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
DB server + PHPMyAdmin ดรัสวิน วงศ์ปรเมษฐ์ สาขาวิชาเทคโนโลยีสารสนเทศ คณะ วิทยาศาสตร์ มรภ. บร. 19/10/56.
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.
APT for RPM Simplified package management for rpm based distributions INFN - Napoli 1 INFM - UDR Napoli 2 HEPiX/HEPNT 2003 – Vancouver Rosario Esposito.
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.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
CIT 500: IT Fundamentals Packages and Filesystems 1.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
T4L – NSW DET SOE Muticasting an Image. Problem New T4L computers use SATA HDD’s SATA drives are not recognised by Current DET Licensed version of Ghost.
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 September 2012 Kaplan University 1.
General rules 1. Rule: 2. Rule: 3. Rule: 10. Rule: Ask questions ……………………. 11. Rule: I do not know your skill. If I tell you things you know, please stop.
CSCI 330 UNIX and Network Programming Unit I Introduction.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
Tanner Lovelace – Slide 1 RPM Packaging 101 Tanner Lovelace Triangle Linux Users Group 11/Jan/2003.
Linux Operations and Administration
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
Debian Package Management
System Administration Application Management. ● A common task for a system administrator is the installation, updating and removal of software. Several.
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:
IT320 Operating System Concepts
Installation of MySQL Objectives Contents Practical Summary
Guide to Linux Installation and Administration, 2e
Linux Command RTFM: rpm(8) & yum(8)
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.
Connect:Direct for UNIX v4.2.x Silent Installation
COP 4343 Unix System Administration
CompTIA Server+ Certification (Exam SK0-004)
Chapter 7 Installing Program &Backup Tool
and what the developer saw there
June 2011 David Front Weizmann Institute
Lecture 13 RPM and its advantages.
More Scripting & Chapter 11
RedHat Package Management
CIT 470: Advanced Network and System Administration
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
Perl in RPM-Land Dave Cross Magnum Solutions Ltd YAPC::Europe
Presentation transcript:

CIT 470: Advanced Network and System Administration Package Management CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Topics The Problem of Software Installation Package Management Systems Using RPM Finding RPMs Building RPMs CIT 470: Advanced Network and System Administration

Software Installation Customization Select options like language. Select file set. Install new files in appropriate locations. Modify existing configuration files. Make software available to user. Shell configuration (PATH, etc.) GUI configuration (menu, icons, etc.) CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration What’s the problem? What prerequisites does your software have? What prereqs do your prereq packages have? How do you handle conflicts? What if two programs install/modify same file? Does your install work on every type of computer? How do you handle upgrades? What if user has customized configuration? What if ownerships/permissions have changed? What if user needs old and new versions? How do you uninstall software? CIT 470: Advanced Network and System Administration

Package Manager Features Build management. Dependency tracking. Querying. Reversibility. Verification. Version control. CIT 470: Advanced Network and System Administration

UNIX Package Management Systems deb: Debian system uses dpkg and APT. pkgadd: Solaris packaging system. portage: Gentoo uses with emerge. ports: BSD ports system. RPM: Redhat packaging system. tgz: Tarballs used by Slackware. CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration RPM RPM Package Manager Originally stood for Red Hat Package Manager Came with Red Hat Linux 2.0 in 1995. Distributions Red Hat Red Hat Enterprise Linux (also CentOS) Fedora Mandriva SUSE RPM on other OS AIX Novell Netware CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration RPM Package Names <name>-<version>-<release>.<arch>.rpm Name: name of the software package. Version: version of the software package. Release: release version of the RPM. Arch: architecture (i386, noarch, ppc, etc.) If Arch is src, RPM contains source code for building the package. CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration RPM Package Contents Identification Identifies package and RPM version. Signature Checksum and digital signature. Header Package and version information. Specifies dependencies on other packages. Payload Actual files to install. Stored as cpio archive compressed with gzip. Use rpm2cpio to obtain cpio archive. CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Using RPM Install Uninstall Upgrade Query Verify CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Installing a Package Check the package and the files it wants to install. Perform preinstallation tasks. Uncompress the files and copy them in the proper locations Perform post-processing tasks Update the RPM Database > rpm -ivh foo-1.0-1.i386.rpm Preparing... ########################################### [100%] 1:foo ########################################### [100%] CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Upgrading a Package Uninstall + install, retaining configuration files. Will install a package if no older version. Will remove all older versions. > rpm -Uvh foo-1.0-1.i386.rpm Preparing... ########################################### [100%] 1:foo ########################################### [100%] CIT 470: Advanced Network and System Administration

Uninstalling a Package Completely removes package from system. > rpm -e foo-1.0-1 > rpm –q foo package foo is not installed. CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Dependencies Prevent install/removal if unfulfilled. # rpm -e setup error: Failed dependencies: setup is needed by (installed) basesystem-8.0-1 setup >= 2.0.3 is needed by (installed) initscripts-6.95-1 setup >= 2.5.4-1 is needed by (installed) filesystem-2.1.6-5 setup is needed by (installed) xinetd-2.3.7-2 setup is needed by (installed) dump-0.4b28-4 # rpm -q setup setup-2.5.20-1 CIT 470: Advanced Network and System Administration

Querying the RPM Database # rpm -q telnet telnet-0.17-31.EL4.3 # rpm -ql telnet /usr/bin/telnet /usr/share/man/man1/telnet.1.gz # rpm -qi telnet Name : telnet Relocations: (not) Version : 0.17 Vendor: CentOS Release : 31.EL4.3 Build Date: Tue 14 Jun 2005 Install Date: Sat 11 Feb 2006 Build Host: build5 Group : Applications/Internet Src RPM: telnet-0.17.src.rpm Size : 87254 License: BSD Signature : DSA/SHA1, Tue 14 Jun 2005, Key ID a53d0bab443e1821 Packager : Johnny Hughes <johnny@centos.org> Summary : Client program for telnet remote login protocol. Description : Telnet is a popular protocol for logging into remote systems over the Internet. The telnet package provides a command line telnet client. RPM database stored under /var/lib/rpm CIT 470: Advanced Network and System Administration

Querying the RPM Database # rpm -qc bash /etc/skel/.bash_logout /etc/skel/.bash_profile /etc/skel/.bashrc # rpm -qd sendmail /usr/share/man/man1/mailq.sendmail.1.gz /usr/share/man/man1/newaliases.sendmail.1.gz /usr/share/man/man5/aliases.sendmail.5.gz /usr/share/man/man8/mailstats.8.gz /usr/share/man/man8/makemap.8.gz /usr/share/man/man8/praliases.8.gz /usr/share/man/man8/rmail.8.gz /usr/share/man/man8/sendmail.sendmail.8.gz /usr/share/man/man8/smrsh.8.gz CIT 470: Advanced Network and System Administration

Searching all Packages # rpm -qa | grep telnet telnet-0.17-31.EL4.3 # rpm -qa | grep py python-2.3.4-14.1 pyOpenSSL-0.6-1.p23 rpm-python-4.3.3-11_nonptl pygtk2-2.4.0-1 python-devel-2.3.4-14.1 python-ldap-2.0.1-2 pyxf86config-0.3.19-1 libxml2-python-2.6.16-6 python-elementtree-1.2.6-4 python-sqlite-1.1.6-1 dbus-python-0.22-12.EL.5 pyparted-1.6.8-2 python-urlgrabber-2.9.6-2 CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Searching Packages Find recently installed packages rpm -qa --last Find packages that are disk hogs rpm -qa --qf "%{size} %{name}\n" | sort –n The --qf (queryformat) option can print arch, name, size, version, distribution, etc. CIT 470: Advanced Network and System Administration

Querying Files and Packages Find which package a file belongs to: # rpm -qf /usr/bin/telnet telnet-0.17-31.EL4.3 # rpm -qf /etc/security/limits.conf pam-0.77-66.11 Querying packages Add –p to any query to apply it to a .rpm file instead of to an installed package. CIT 470: Advanced Network and System Administration

Dependency Resolution Higher level tools handle dependencies up2date, yum, yast, urpmi Automatic resolution + downloading. 1. Find dependencies in RPM headers. 2. Download dependencies, check their headers. 3. Repeat. 4. Install after all RPMs downloaded. CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Yellow Dog Updater Modified Rewrite of YUP from Yellow Dog Linux. Used by many RPM-based distributions. Automatically syncs repo metadata. Prevents problems arising from out of data package information on local system. Wastes time when local data up to date. Image from http://en.wikipedia.org/wiki/Yellow_dog_Updater,_Modified CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Yum Installs yum install pkg: finds specified package, downloads it, and installs it. yum remove pkg: remove the specified package from the system. yum update <pkg>: updates specified package or updates all packages if no package specified. CIT 470: Advanced Network and System Administration

yum list <option> <pkgspec> Options: available: list packages available to be installed. installed: list installed packages like rpm –qa. extras: lists installed packages that are not available on any currently configured repo. recent: lists packages added to repositories in last 7 days. updates: lists updates for any installed packages. Package Specifications: bash bash-3.10 \*sh \*.i386 CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Yum Commands check-update: lists updates, returns 100 if any updates available. clean: removes yum cache files. deplist: list all dependencies for a package. info: list package data like rpm –qi yum provides: find which package provides the specified command, i.e. yum provides \*bin/ls. yum search: lists packages whose name, summary, description, or URL matches the specified search term. CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration Package Sources Sources Local files (CD/DVD or hard disk) Red Hat Network commercial sites for RHEL CentOS network official mirrors for CentOS Unofficial network repositories like RPMforge Source configuration up2date: /etc/sysconfig/rhn/sources yum: /etc/yum.conf, /etc/yum/repos.d CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration RPMForge RPMForge Repository provides non-official packages http://dag.wieers.com/home-made/apt/ Some packages don’t exist in RHEL Other packages are more up to date than RHEL Configure system to use RPMForge via rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm CIT 470: Advanced Network and System Administration

CIT 470: Advanced Network and System Administration References Debian FAQ, “Debian Package Management Tools,” http://www.debian.org/doc/FAQ/ch-pkgtools.en.html Eric Foster-Johnson, RPM Guide, http://fedora.redhat.com/docs/drafts/rpm-guide-en/, 2005. Aeleen Frisch, Essential System Administration, 3rd edition, O’Reilly, 2002. Evi Nemeth et al, UNIX System Administration Handbook, 3rd edition, Prentice Hall, 2001. RedHat, Red Hat Enterprise Linux 4 System Administration Guide, http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/, 2005. CIT 470: Advanced Network and System Administration