Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.

Slides:



Advertisements
Similar presentations
Installation of MySQL Objectives –Install MySQL Contents –Getting the enviroment for building MySQL server –Rebuilding SRPMS –Removing existing –Installing.
Advertisements

Software Package Management WeeSan Lee. Roadmap What is software package management? RPM YUM pkgtools.
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.
Overview Basic functions Features Installation: Windows host and Linux host.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Installing Linux softwares Sirak Kaewjamnong. 2 Software packets  When Linux developers create their software they typically bundle all the executable.
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
Chapter 11 Compression, System Backup, and Software Installation.
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
Linux+ Guide to Linux Certification
Blackboard Pilot Tasks and Walkthroughs. Bb Test Case Training Pilot with AnswersDarek Sady - 5/4/2004 Goals:  Identify problematic areas our clients.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 WP4 hands-on workshop: EDG LCFGng exercises
Dustin Harman VM Workshop 2015 RPM Basics. What is RPM? Red Hat Package Manager Native package manager on RHEL, Fedora, SUSE, some Mandriva RPM/SRPM files.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
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.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install.
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.
DHCP server & Client Objectives –to learn how to setup dhcp servers Contents –Download and Install The DHCP Package –The /etc/dhcpd.conf File –Upgrading.
Maintain Installed Applications. Computer Center, CS, NCTU 2 In Ports Tree  / Makefile  COMMENT pkg-descr  WWW pkg-message  Shown after installed.
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.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
Installation and Upgrade Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Solaris 10 installation.
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.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
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.
Linux Overview Why Linux ? Not-so-ancient history –Torvalds, Linus Torvalds, 002 the Helsinki University, as a student, low budget, work home –rapid and.
L.T.E :: Learning Through Experimenting Using google-svn for MtM Docs Development Denis Thibault Version 3.2 Mar 12 th, 2009.
Installation of PHP5 Objectives –Install PHP5 with support for Apache and MySQL Contents –Installing latest dependencies LibXML & LibSLT –Compiling and.
Yannick Patois - Datagrid Software Repository Presentation - March, n° 1 Datagrid Software Repository Presentation CVS, packages and automatic.
Network Time Protocol Objectives Contents to learn how to setup ntp
Linux Operations and Administration
Software in the Data Protector Architecture
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
Software Management Linux Software Package File Extensions Extension File.rpm Software package created with the Red Hat Software Package Manager, used.
Installation of PHP5 Objectives –Install PHP5 with support for Apache and MySQL Contents –Installing latest dependencies LibXML & LibSLT –Compiling and.
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
System Administration Application Management. ● A common task for a system administrator is the installation, updating and removal of software. Several.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
RPM101: A gentle intro to creating your own packages Richard Keech Red Hat Asia-Pacific.
Chapter 9 Managing Software
Installation of the ALICE Software
RPM.
Installation of MySQL Objectives Contents Practical Summary
Connect:Direct for UNIX v4.2.x Silent Installation
Install external command line softwares
DHCP server & Client Objectives Contents
Chapter 7 Installing Program &Backup Tool
Managing Software.
More Scripting & Chapter 11
RedHat Package Management
University of Texas Rio Grande Valley Systems Administration CSCI 6175
COP 4343 Unix System Administration
FreeBSD ports & packages
Presentation transcript:

Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting RPM from WEB/FTP –Manually install from disk/net –Installing SRPMS –Creating RPMS –Managing RPM’s –Managing tar-balls –Apt-get Practical –none Summary

Application delivered as Binaries –Application comes precompiled –Can be dependent of other libraries, dynamic built. –Can be undependent of other libraries, static built. –Is dependent on SuSE version –Is dependent of plateform ie. I386 architecture or sparc Sourcecode –Application comes as open c/c++ -source code –You need to have development enviroment installed ie. gcc –Is undependent of plateform And is stoved in ”tar-balls” –Application is zipped togeather with tar (tape archive record) –Most common for 3:party and application in sourcecode And is stoved in ”rpm’s” –Application is packaged in special SuSE packet –Most common for SuSE precompiled applications

Where To Get Commonly Used RPMs RPMs On Your Installation CDs –You find all.rpm files in /suse/i386/9.3/suse on CD1-5 –mount /dev/cdrom or install automount RPMs Downloaded From SuSE 9.3 – –ftp://ftp.suse.com/pub/suse/i386/9.3/suse/i586ftp://ftp.suse.com/pub/suse/i386/9.3/suse/i586 – Note that you can download i686 and x86_64 as well! RPMs Downloaded From SuSE 10.0 – source/suse/i586/ source/suse/i586/ –Note that you can download i686 and x86_64 as well! Also look in ”noarch” directory if searching for something Other places for RPM’s – –ftp://ftp.sunet.seftp://ftp.sunet.se

Autofs on! Activate automount of CD rom for ease use. –Usally it is already there, this is how you can check: –You can then ensure that it runs when the system boots using the chkconfig command. There are two automount configuration files in /etc –auto.master –auto.misc Restart autofs # rpm -qa | grep autofs autofs-x.x.x-xx # rpm -qa | grep autofs autofs-x.x.x-xx # chkconfig autofs on /misc /etc/auto.misc --timeout 60 cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom # /etc/init.d/autofs restart

Getting RPMs Using Web Based FTP from Open SuSE site –Use your web browser to go to theSuSE link above –Go to the /pub/opensuse/distribution/SL-OSS-stable/inst- source/suse/noarch/ -directorypub/opensuse/distribution/SL-OSS-stable/inst- source/suse/noarch/ –Click on the ulimit noarch.rpm linkulimit noarch.rpm –Save the file to your hard drive from RPM find site –Go to the rpmfind link above –Type in ”openldap" in the search box –Click the search button –Scroll down for the RPM that matches your version of SuSE –The right hand column has the links with the actual names of the rpm files –Click the link –Save the file to Linux box's hard drive With wget # wget source/suse/noarch/ulimit noarch.rpm

Getting RPMs Using Anonymous FTP Open ftp.suse.comftp.suse.com Download your rpm’s –Here we used mget to download several files at same time # ftp ftp.suse.comftp.suse.com ftp> cd pub/suse/i386/9.3/suse /i586 ftp> ls clam* 227 Entering Passive Mode (195,135,221,132,54,181) 150 Listing -rw-r--r-- 1 ftp ftp Jun 01 13:35 clamav i586.rpm -rw-r--r-- 1 ftp ftp Jun 01 13:35 clamav-db i586.rpm -rw-r--r-- 1 ftp ftp Mar clamav-debuginfo i586.rpm 226 Directory send OK. ftp> mget clam*.. # by # ftp ftp.suse.comftp.suse.com ftp> cd pub/suse/i386/9.3/suse /i586 ftp> ls clam* 227 Entering Passive Mode (195,135,221,132,54,181) 150 Listing -rw-r--r-- 1 ftp ftp Jun 01 13:35 clamav i586.rpm -rw-r--r-- 1 ftp ftp Jun 01 13:35 clamav-db i586.rpm -rw-r--r-- 1 ftp ftp Mar clamav-debuginfo i586.rpm 226 Directory send OK. ftp> mget clam*.. # by

How To Manually Install RPMs Installing Downloaded rpm-Files & from CDROM INSTALLING # rpm -ivh ulimit noarch.rpm # rpm-ivh clamav i586.rpm -i = Specifies installation as the action to be taken. -v = Will display additional information while installing. -h = Prints 50 hash marks (#) as installation progresses. UPDATING # rpm -Uvh clamav-db i586.rpm -U = Update UNINSTALLING # rpm -e clamav -would remove the package named clamav -e = erase

How To Manually Install RPMs from NET Installing rpm-Files from the net FTP Anonymous passwords: # rpm –ivh ftp:// FTP Non anonymous: # rpm -ivh password: HTTP # rpm -ivh

More RPM afterwork and checkouts Test install before real install Update test # rpm -Uvh –test clamav-db i586.rpm Install test # rpm -ivh --test clamav i586.rpm QUERY EXACT # rpm -q ulimit-show package version and if it is installed VERIFY # rpm –verify samba installed package status (as most unix commands,this will only show you results if there are) IS INSTALLED # rpm -qa | grep samba-grep all that begins with samba LISTING FILES # rpm -qpl clamav i586.rpm-show all files stoved in rpm package

How to Install Source RPMs Usually installed using a supplier-produced scripts –You have to download them or get them from CD-roms –Files lastnames are.src.rpm –They are usally found in a catalog called src/ –In order to make your application, you need to compile: Installing compiled SRPMS SuSE 9.3 keeps its SRPMS files –In: /suse/i386/9.3/suse/src Built SRPMS is in /usr/src/packages directories: BUILD RPMS SOURCES SPECS SRPMS # rpmbuild --rebuild application.src.rpm... # rpmbuild --rebuild application.src.rpm... # cd /usr/src/packages/RPMS/i586 # rpm –ivh application.rpm # cd /usr/src/packages/RPMS/i586 # rpm –ivh application.rpm

Creating RPM’S Uses a special rpm script language, similar to shellscript RPMS must be created on a stock revision of SuSE –Because it must be based on standard libraries and kernels –In order to be licensed and accepted by SuSE –Much more ease of supporting endusers who make installations –Not needed in isolated homogenus enviroments RPMS are based on ”tar-balls” & cpio –Add a user called rpm –Place your tar ball in /usr/suse/SOURCE or ~rpm/SOURCE –To begin create a ”spec” file in /usr/src –Spec file describes vendor, package structure, patches and much more Create your RPMS –You will get RPMS SRPMS and TGZ/BZ2 files for mass installation –All files reside in /usr/suse –Create your RPM with rpm -v -ba rpmtests-v1.0.spec

Install/Uninstall TAR-balls Unpacking TAR package application –tar xvfz application.tar.gz Preconfigure application –cd application –Read the INSTALLATION and HOWTO’s –./configureormake config Compile application –Make is sometimes not needed if application is binary –make –make test Install application –If application is binary, you sometimes just run./install or similar –make installor./install Uninstall application make uninstall

Creating simplyfied TAR-balls f. deploy Prepare your binary tree –Populate application binaries in stock SuSE –Create nessesary catalogs in stock SuSE Backup your binary tree –tar cvfz bin/myapp etc/myapp.conf –Write some INSTALLATION and HOWTO’s for installer –Write./configure and basic Makefile or other installation script Scripts can be more or less complicated. They must be able to: –Check if application is installed –Update old installed versions –Cleanup after installation or uninstallations –Install dependencies or at least tell installer –This you usally bake inside./configure that prepare the Makefile

Other installation/uninstall tools APT –Debian tool for updating and installing application and system components –# apt-get [options] install package [package...] –There options [update|check|install|upgrade|remove] –Also available for SuSE pkgtool –Slackware package manager rpm2cpio –Extract cpio archive from RPM Package Manager (RPM) package rpm2tgz/rpm2targz –Mainly supposed for slackware –Extract tar archive from RPM Package Manager (RPM) package