APT for RPM Simplified package management for rpm based distributions INFN - Napoli 1 INFM - UDR Napoli 2 HEPiX/HEPNT 2003 – Vancouver Rosario Esposito.

Slides:



Advertisements
Similar presentations
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
Advertisements

Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
Guide to Linux Installation and Administration, 2e1 Chapter 12 Printing in Linux.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Linux Networking CIS Why Linux/Unix? Configurability ▫Customizable System to satisfy unique needs. Scalability ▫Able to serve an increasing number.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Package Managers What are they and why we use them.
Julie McEnery1 Installing the ScienceTools The release manager automatically compiles each release of the Science Tools, it creates a set of wrapper scripts.
Installing Linux softwares Sirak Kaewjamnong. 2 Software packets  When Linux developers create their software they typically bundle all the executable.
Linux Operations and Administration
Hyrax Installation and Customization Dan Holloway James Gallagher.
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
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.
Debian package manager Presenter: Lilian Wang. Install Software  先別管 package 了, 你有聽過重灌嗎 ?  Chrome/Firefox, Office, pietty, Notepad++, PCMan, LOL, …
Linux Operations and Administration
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
OCLC Online Computer Library Center CONTENTdm Migration Training Craig Yamashita Vice President, Technology and Product Development DiMeMa, Inc. July 2005.
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.
EDG LCFGng: concepts Fabric Management Tutorial - n° 2 LCFG (Local ConFiGuration system)  LCFG is originally developed by the.
Package Management How to use rpms. Topics The Problem of Software Installation Package Management Systems Using RPM Finding RPMs Building RPMs.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
Linux Package Management Dr. Michael L. Collard 1.
Yannick Patois – CVS and Autobuild tools at CCIN2P3 – hepix - October, n° 1 CVS setup at CC-IN2P3 and Datagrid edg- build tools CVS management,
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Package Management.
CERN Manual Installation of a UI – Oxford July - 1 LCG2 Administrator’s Course Oxford University, 19 th – 21 st July Developed.
Linux Installation and Administration Lesson 3 Tutor: George Papamarkos.
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
Application Installation Guntis Barzdins Girts Folkmanis.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
CERN-PH-SFT-SPI August Ernesto Rivera Contents Context Automation Results To Do…
Capabilities of Software. Object Linking & Embedding (OLE) OLE allows information to be shared between different programs For example, a spreadsheet created.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
Maite Barroso - 10/05/01 - n° 1 WP4 PM9 Deliverable Presentation: Interim Installation System Configuration Management Prototype
Yannick Patois - Datagrid Software Repository Presentation - March, n° 1 Datagrid Software Repository Presentation CVS, packages and automatic.
Linux Operations and Administration
A Mirror Engine Computer Science Capstone Tobias Hertkorn.
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
Introduction to Linux Server Setup Jonathan Hood CSE 4000 Practical Issues in Software Engineering.
Debian Package Management
 Project Team: Suzana Vaserman David Fleish Moran Zafir Tzvika Stein  Academic adviser: Dr. Mayer Goldberg  Technical adviser: Mr. Guy Wiener.
ABCD VS KOHA ; THE ARCHITECTURE AND FUNCTIONALITIES OF SELECTED MODULES. by Joel Nakitare.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Setting Up a Repository.
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:
PDF Recovery Tool Fix Portable Document File Format.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
CIT 470: Advanced Network and System Administration
COP 4343 Unix System Administration
SPI external software build tool and distribution mechanism
Chapter 7 Installing Program &Backup Tool
Managing Software.
Lecture 13 RPM and its advantages.
More Scripting & Chapter 11
RedHat Package Management
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
University of Texas Rio Grande Valley Systems Administration CSCI 6175
OPS235: Lab 2 Virtual Machines – Part I
IS3440 Linux Security Unit 8 Software Management
OPS235 PACKAGE MANAGEMENT
SUSE Linux Enterprise Desktop Administration
The EU DataGrid Fabric Management Services
FreeBSD ports & packages
Web Application Development Using PHP
Presentation transcript:

APT for RPM Simplified package management for rpm based distributions INFN - Napoli 1 INFM - UDR Napoli 2 HEPiX/HEPNT 2003 – Vancouver Rosario Esposito 1 Francesco Maria Taurino 1,2 Gennaro Tortone 1

HEPiX/HEPNT 2003 – Vancouver2 Linux strengths allowed this operating system to gain a central place in the IT market Package management played an important role in this process The Linux system’s coherency is assured maintaining databases of installed files. In this way installing or removing programs gets an easy task Nowadays only few programs are installed using source files Linux

HEPiX/HEPNT 2003 – Vancouver3 In more widespread linux distributions, programs are distributed in binary RPM, DEB or modified TGZ formats RPM (RedHat Package Management) packages are used on RedHat, Mandrake, Suse, Conectiva DEB are used on the open source distribution Debian and its forks Modified TGZ are used on SlackWare Packages

HEPiX/HEPNT 2003 – Vancouver4 Dependencies management is a very useful feature of package management software They keep systems in a consistent state and guarantee the applications to run in the expected way rpm or dpkg commands have limited dependencies management features They can report which library a package relies on, but the library can itself relies on other packages… Dependencies

HEPiX/HEPNT 2003 – Vancouver5 System Administrator After installation, usually an os needs some updated packages Experiment Experiment software has to be installed on machines Grid Add grid programs to installed machines Scenarios

HEPiX/HEPNT 2003 – Vancouver6 Installing a package “mod_test1” : # rpm -Uvh mod_test1-xxx.rpm error: failed dependencies: package-a1 is needed by mod_test1 # rpm -Uvh package-a1-xxxx.rpm error: failed dependencies: package-b2 is needed by package-a1 # rpm -Uvh package-b2-xxxx.rpm And so on… Dependencies - Example

HEPiX/HEPNT 2003 – Vancouver7 Up2date – RedHat RedCarpet – Ximian YOU (YaST Online Update) – Suse YUP (YellowDog Updater) – YellowDog PPC Urpmi – Mandrake YUM (YellowDog Updater Modified) APT (Advanced Packaging Tool) – Debian (and rpm...) Some solutions

HEPiX/HEPNT 2003 – Vancouver8 Up2date, RedCarpet, YOU and YUP solve the dependencies and upgrade problems for rpm. RedCarpet is also available for Debian They are bounded to RedHat, Ximian, Suse and YellowDog distribution servers, or their mirrors They require expensive software in order to create ad-hoc software repository, so if a package is not available on their repositories it’s not installable with these tools Typically they have an X or ncurses interface Usually they cannot be used in non-interactive way Up2date et al...

HEPiX/HEPNT 2003 – Vancouver9

10 Urpmi is a wrapper for the rpm commands Available only for Mandrake distributions It’s possible to use package repositories different from the Mandrake official ones It has a good graphical front-end, but all functions are also available in command line and in non- interactive mode There are several commands for various functions Urpmi (1/2)

HEPiX/HEPNT 2003 – Vancouver11 Urpmi (2/2) urpmi.addmedia, urpmi.removemedia: add and remove a media used by urpmi urpmq : query the package database urpmf : search the packages which contain the given file name urpmi : package installation Automatic upgrade on a Mandrake machine # urpmi.update update_source ; urpmi --auto --auto-select --media update_source

HEPiX/HEPNT 2003 – Vancouver12 YUM is a fresh project, based on YUP It’s written in python and exploits some portions of code of Anaconda, the RedHat installer With YUM you can create ad-hoc packages repositories Currently available only for RedHat Its logic is slightly different from APT YOUNG, BUT VERY POWERFUL… YUM

HEPiX/HEPNT 2003 – Vancouver13 APT is a system created in the Debian community to automatically manage the packages dependencies APT can install, remove and upgrade packages, managing dependencies and downloading the packages It’s a frontend to other tools, and it uses the underlying package management system, like the rpm or dpkg commands It’s able to fetch packages from several media (cdrom, ftp, http, nfs), and it can be used to create ad-hoc software repositories APT

HEPiX/HEPNT 2003 – Vancouver14 APT – Using (1/3) # apt-get install nautilus Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: bonobo libmedusa0 libnautilus0 The following NEW packages will be installed: bonobo libmedusa0 libnautilus0 nautilus 0 packages upgraded, 4 newly installed, 0 to remove and 1 not upgraded. Need to get 8329kB of archives. After unpacking 17.2MB will be used. Do you want to continue? [Y/n]

HEPiX/HEPNT 2003 – Vancouver15 APT – Using (2/3) # apt-get remove gnome-panel Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: gnome-applets gnome-panel gnome-panel-data gnome-session 0 packages upgraded, 0 newly installed, 4 to remove and 1 not upgraded. Need to get 0B of archives. After unpacking 14.6MB will be freed. Do you want to continue? [Y/n]

HEPiX/HEPNT 2003 – Vancouver16 APT – Using (3/3) # apt-cache search pdf kghostview - PostScript viewer for KDE tetex - The TeX text formatting system. xpdf - A PDF file viewer for the X Window System … # apt-cache show xpdf … Filename: xpdf i386.rpm Description: A PDF file viewer for the X Window System. Xpdf is an X Window System based viewer for Portable Document Format (PDF) files. Xpdf is a small and efficient program which uses standard X fonts.

HEPiX/HEPNT 2003 – Vancouver17 Brazilian distribution Conectiva ported the apt system on its linux distribution, which uses rpm packages Apt is now available for all distributions using rpm, also thanks to the SourceForge project apt4rpm ( Some features of Debian apt are not yet available, like package priority or requests to change configuration files, because of some differences in deb and rpm format APT for RPM

HEPiX/HEPNT 2003 – Vancouver18 Create the directory tree /RPMS.os, /RPMS.updates, /base (for apt specific files) Ex: /linux/apt/redhat/7.3/i386/RPMS.os In RPMS.os: copy the distribution rpms In RPMS.updates: copy the updates rpms Give the command genbasedir --topdir=/linux/apt --bloat --bz2only redhat/7.3/i386 os (for “os” section) genbasedir --topdir=/linux/apt --bloat --bz2only redhat/7.3/i386 updates (for “updates” section) APT – repository creation

HEPiX/HEPNT 2003 – Vancouver19 Create an apache virtual host ServerName apt.na.infn.it DocumentRoot /linux/apt Options +Indexes The source.list file to access this repository is rpm redhat/7.3/i386 os updates APT – repository source.list

HEPiX/HEPNT 2003 – Vancouver20 We have an apt repository in our campus in Naples, accessible at apt packages for RedHat 7.2, 7.3, 8 e 9 and corresponding sources.list files for os and updates are available on this site Updates rpms and apt lists are updated every night APT – Naples repository

HEPiX/HEPNT 2003 – Vancouver21 YellowDog Linux PPC includes apt New RedHat beta distro includes apt Suse is plannig to include apt Some public repositories for RedHat apt-rpm.tuxfamily.org apt.42h.de Distros and repositories

HEPiX/HEPNT 2003 – Vancouver22 Apt simplifies package management on rpm based distributions, even on RedHat, most used distribution in HEP environments Systems update is possible with only two commands: # apt-get update; apt-get -y upgrade Using a local repository is possible to upgrade machines using no external links It is possible to include non standard packages in local repositories... APT - Benefits

HEPiX/HEPNT 2003 – Vancouver23 We are developing a procedure to install the Grid-IT distribution on RedHat 7.3 with kickstart, APT and LCFGng Kickstart Unattended installations Known and well documented behaviour Perhaps more flexible than other tools APT Simplified package management Automatic package download to satisfy dependencies InGRID - Installing GRID (1/4)

HEPiX/HEPNT 2003 – Vancouver24 LCFGng University of Edinburgh project to setup and maintain Unix systems It can configure many system files, execute scripts, create users, etc Client-server architecture to manage many systems from a single machine InGRID (2/4)

HEPiX/HEPNT 2003 – Vancouver25 Installation“Gridification”Configuration RH Kickstart APT LCFGng InGRID (3/4)

HEPiX/HEPNT 2003 – Vancouver26 We install a RH73 machine via kickstart Then we run a script # ingrid CEto install all computing element packages via APT After the first reboot LCFG customizes all configuration files This system is actually used to install grid resources in the INFN, INFM and Physics Department laboratories in Naples InGRID (4/4)

HEPiX/HEPNT 2003 – Vancouver27 Apt - Apt4rpm - FreshRPMS - RedCarpet – YUM - LCFG – InGRID – (Italian only) References