Package Management System

Similar documents
Linux Software Management. Linux System Administration COMP2018 Summer 2017

Package management rpm Package management with yum The tar tool

7. Archiving and compressing 7.1 Introduction

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal.

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

Unzip command in unix

Opera Web Browser Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

CS Unix Tools. Fall 2010 Lecture 8. Hussam Abu-Libdeh based on slides by David Slater. September 24, 2010

Unix unzip zip compress uncompress zip zip zip zip Extracting zip Unzip ZIP Unix Unix zip extracting ZIP zip zip unzip zip unzip zip Unix zipped

client X11 Linux workstation

Application Management

Practical Installing utility software 7Zip on Windows

Communications Library Manual

02. At the command prompt, type usermod -l bozo bozo2 and press Enter to change the login name for the user bozo2 back to bozo. => steps 03.

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

Introduction to remote command line Linux. Research Computing Team University of Birmingham

GWDG Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Handling Ordinary Files

Session: Shell Programming Topic: Additional Commands

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

University of Hagen - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Linux Essentials Objectives Topics:

CS 307: UNIX PROGRAMMING ENVIRONMENT WORKING WITH FILES AND COLLECTIONS OF FILES

Linux unzip multiple zip files

University of the Free State - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Backup & Recovery. Sun Microsystems Korea. ning.co.kr

Comptia LX0-101 Exam Questions & Answers

CS Unix Tools & Scripting

Vendor: LPI. Exam Code: Exam Name: LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2. Version: Demo

Package Manager. RPM (Red Hat Package Manager)

Advanced Linux System Administra3on

Tux Paint Project Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Introduction to Linux Organizing Files

Internet Solutions - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

CDNetworks Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

2 Installing the Software

Vienna University of Technology - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Flwrap Users Manual Generated by Doxygen

HugeServer Networks Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Macomnet Telecommunications - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

The Rockefeller University I NFORMATION T ECHNOLOGY E DUCATION & T RAINING. VPN Configuration Guide for Unix/Linux

Unix Tools / Command Line

Heilbronn University - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

How to set up the TinyOS environment on Debian

Pulsant Cloud Hosting - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Debian Project. What is Debian? Debian. Debain Roadmap. Linux(Debian GNU/Linux) : 3 (2005/8/4) ASIN:

Goethe University Frankfurt - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Exam LFCS/Course 55187B Linux System Administration

Lab #1 Installing a System Due Friday, September 6, 2002

Croatian Academic and Research Network - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

University of Duisburg-Essen - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Computer Systems and Architecture

Leaseweb Hosting Services - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Indiana University - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Akamai Connector for Varnish Installation Guide

e2 factory the emlix Embedded Build Framework

Linux command line basics II: downloading data and controlling files. Yanbin Yin

Advantech General FAQ. How to change ubuntu specific kernel for quick cross test

Archives. Gather and compress Campus-Booster ID : **XXXXX. Copyright SUPINFO. All rights reserved

Lab 1 Introduction to UNIX and C

acmteam/unix.pdf How to manage your account (user ID, password, shell); How to compile C, C++, and Java programs;

Spango Internet - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Package Managers. What are they and why we use them

Operating Systems Coursework Task 3

Virtual Machine. Linux flavor : Debian. Everything (except slides) preinstalled for you.

Software Installation Guide 2.4

Tomsk State Pedagogical University - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Course 55187B Linux System Administration

Practical Knowledge Transfering, moving and exporting files Martin Dahlö

PASS4TEST IT 인증시험덤프전문사이트

Unit: Making a move (using FTP)

Lab Week02 - Part I. Shell Commands. Professional Training Academy Linux Series

Practical Unix exercise MBV INFX410

A Makefile. The Makefile contains various statements that specify how the application should be compiled and where it should be installed on your

heise Online - FTP Site Statistics Top 20 Directories Sorted by Disk Space

Computer Systems and Architecture

Connecting to a Tactical Subject Using The F-Response Accelerator on Linux

Lab00: Software Environment Setup

Software installation is not always a trivial task

The KBackup Handbook. Martin Koller

NetBackup Deployment Template User Guide for Chef

Reboot the server and start the hypervisor from the boot menu (Xen amd64 / Debian GNU/Linux, kernel xen-amd64)

CSE 390a Lecture 6. bash scripting continued; remote X windows; unix tidbits

RWTH Aachen University - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

MUC Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

FLWRAP Users Manual 1.3. Generated by Doxygen Wed Jun :40:27

Genesys Pulse Deployment Guide. Capture Collector memory dumps

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

CSE 390a Lecture 6. bash scripting continued; remote X windows; unix tidbits

Introduction To Linux. Rob Thomas - ACRC

Basic Linux Commands. Srihari Kalgi M.Tech, CSE (KReSIT), IIT Bombay. May 5, 2009

OpenSSL Software Foundation, Inc.

Lecture 5. Additional useful commands. COP 3353 Introduction to UNIX

LINUX FUNDAMENTALS. Supported Distributions: Red Hat Enterprise Linux 6 SUSE Linux Enterprise 11 Ubuntu LTS. Recommended Class Length: 5 days

Definition Center Installation for Linux

Utilities. September 8, 2015

Ubuntu unzip tar file

McAfee Endpoint Security Threat Prevention Installation Guide - Linux

Transcription:

Package Management System The name "package" is used in Linux for an application with all of its Supported files. A package management system is a collection of tools to automate the process of installing, upgrading and removing software packages from a computer. Linux systems rely heavily on it. Extension Description Related Commands.bz Burrows Wheeler algorithmic bzip2, bunzip Compression.gz Lempel Ziv algorithmic gzip, gunzip Compression Tar Command Usually it's needed to be able to combine many files into a single file that can easily be split back to its original files again. The tar command can create a new file based on the combined contents of several other files. The name tar originally stood for "tape archive" so one reason to use this command is to put files onto a tape. Before the machines were networked together, this was almost the only way to move a set of files from one UNIX/Linux machine to the other. The tar command puts the data into the same format as would be required for a tape, but the data is placed into a file. This can only be done if you use the f option to specify which file you would like the data placed into. The command to create a new file which is the tarring of a list of other files would be: % tar cvf new.file.tar first.file second.file third.file The tar command is called with three options: C: to tell it you want to create the tar file V: to tell it you would like to see verbose output F: to tell it you would like it to deal with file rather than tape Here the three commands are shown all using the same dash ( ), this can be done for most commands that are being called with more than one option. The file named immediately after the f is the name of the tar file that will be created. The other files named will have their contents copied into the tar file being created (these files themselves will not be modified in anyway). % tar tvf new.file.tar This use of the tar command will display a list of files contained in the tar file named immediately after the f option.

% tar xvf new.file.tar This use of the tar command will extract the files contained in the tar file named immediately after the f option. The tar file will not be modified in any way. The files created will be named as specified in the tar file; in files with those names already exist, their contents will be replaced. % tar rvf new.file.tar another.file This use of tar command adds a new file to an already tarred file. % tar vf new.file.tar delete toberemoved.file This use of tar command deletes an specific file form a tarred file. Compressing files: List of options for tar: c=create x=extract t=table of contents v=verbose f=file r = to add a new file to an already tarred file delete= to delete an specific file from a tarred file z to zip a file with gz extension j= to zip a file with bz2 extension Debian Package Management: To find information about download, install or remove packages you either use a graphical tool or the text modus. The graphical tools provided by distributions do not differ very much. Package management with dpkg: dpkg update avail : Updates the list of available packages l [ list] : Lists all installed packages i [ install] : Installs one or more package(s) r [ remove] : Removes one or more package(s) but the config files remain p [ purge] : Like remove but also the config files

are removed Package management with APT: APT is the Advanced Package Tool and provides the apt-get program. apt-get provides a simple way to retrieve and install packages from multiple sources using the command line. Unlike dpkg, apt-get does not under stand.deb files, it works with the packages proper name and can only install.deb archives from a source specified in /etc/apt/sources.list. apt-get will call dpkg directly after downloading the.deb archives from the configured sources. Some common ways to use apt-get are: To update the list of package known by your system, you can run: O apt-get update (you should execute this regularly to update your package lists) To upgrade all the packages on your system, run: O apt-get upgrade To install the foo package and all its dependencies, run: O apt-get install foo To remove the foo package from your system, run: O apt-get remove foo To remove the foo package and its configuration files from your system, run: O apt-get --purge remove foo To upgrade all the packages on your system to a new Debian GNU/Linux release, run: O apt-get dist-upgrade Note that you must be logged in as root to perform any commands that modify the system packages. The apt tool suite also includes the apt-cache tool to query the package lists. You can use it to find packages providing specific functionality through simple text or regular expression queries and through queries of dependencies in the package management system. Some common ways to use apt-cache are: To find packages whose description contains word: O apt-cache search word

Sources to get packages from: New packages can be fetched from different sources like CD ROM, local directories or the internet. Sources to be used are defined in a list on your local machine. The list is based in /etc / apt / s o u r ces.list and can be edited with a text editor. Before doing so it's strongly recommended to archive the original file: # cp /etc / ap t / s o u rces.list /etc / apt / s o u r ces.list.orig If you want to use sources from the Internet you should inform yourself about trustwor thy URLs. Most distributions come along with a list of sources in the basic installation. To activate the preferred source in sources.list, simply delete the # on the beginning of the line. To add CD ROM to the sources.list file, run the command: #apt cdrom add Then comment all other lines in /etc / apt / s o u rces.list file. Redhat/SUSE Package Management: The installed package V [ verify] pkgname : Checks if the package was downloaded correctly i [ install] pkgname : Installs the package test pkgname : The installation is only Simulated F [ freshen] pkgname : Updates installed packages e [ erase] pkgname : Deinstalls a package Package management with yum: Yum is an automatic updater and package installer / remover for rpm systems. It makes it easier to maintain groups of machines without having to manually update each one using rpm. 1. Before you use yum for the first time, type following command to download headers.

# yum check update 2. To install a package which is not installed already, use "install" option with yum. # yum install [package name] 3. To remove a package which installed already, use "remove" option with yum. # yum remove [package name] 4. To install any updates available, use "update" option with yum. # yum update 5. To search a package by name (wildcard ok), use "search" option with yum. # yum search [any name]