Debian Package Management

Slides:



Advertisements
Similar presentations
Backups In Linux. The Linux System Many Linux distros set up seperate "/home" and "/" (root) partitions. User configuration files are hidden with a "."
Advertisements

Lesson 13 PROTECTING AND SHARING DOCUMENTS
Installation and Deployment in Microsoft Dynamics CRM 4.0
16.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft® Windows® Server 2003 Active Directory Infrastructure.
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Package Managers What are they and why we use them.
1. 2 LXU800 User’s Manual 1.Installation – Windows XP UI Features Introduction Data Connection & Disconnection.
Deploying and Managing Software by Using Group Policy.
Installing Linux softwares Sirak Kaewjamnong. 2 Software packets  When Linux developers create their software they typically bundle all the executable.
taskbar Notification area Start To change size of taskbar: RMC- uncheck Lock the taskbar Changing Properties : RMC- Properties.
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, …
GNU/Linux Fundamentals Part 3
Linux Operations and Administration
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
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.
Hands-On Microsoft Windows Server 2003 Administration Chapter 2 Managing Windows Server 2003 Hardware and Software.
Lesson 14: Installing and Uninstalling Programs how to install a new program what to do if the new program doesn’t work how to uninstall a program © CCI.
MIGRATING FROM MICROSOFT EXCHANGE SERVER AND OTHER MAIL SYSTEMS Appendix B.
Linux Package Management Dr. Michael L. Collard 1.
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
Installing and Using Active Directory Written by Marc Zacharko.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
Package Management. Basic Commands apt-get install : install package + dependencies apt-get remove : removes the package not dependencies apt-get autoremove.
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.
APT for RPM Simplified package management for rpm based distributions INFN - Napoli 1 INFM - UDR Napoli 2 HEPiX/HEPNT 2003 – Vancouver Rosario Esposito.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Module 7 Configure User and Computer Environments By Using Group Policy.
11 SUPPORTING APPLICATIONS IN WINDOWS XP PROFESSIONAL Chapter 9.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
AIP Backup & Restore Sunita Barve NCRA, Pune. AIP The latest version of DSpace 1.7.0, supports backup and restore of all its contents as a set of AIP.
Upgrade Process. GL Adjustments Create Backup Restore from a Backup Download & Install.
XP Practical PC, 3e Chapter 3 1 Installing and Learning Software.
Module 6: Deploying and Managing Software by Using Group Policy.
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.
Module 8 : Configuration II Jong S. Bok
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Intro to Git presented by Brian K. Vagnini Hosted by.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
RedHat Package Management RPM and YUM in RedHat Enterprise, Fedora, Suse and Centos.
WinCVS Training è Basic Concepts è Download & Setup è Importing a new module into CVS Repository è Getting new module from CVS è Getting Latest version.
Lab 07 Cisco Routers. Project Proposals  Due NOW!  Will review after lecture Will discuss with team captain Note: evening labs may have a longer wait.
Introduction to Linux Server Setup Jonathan Hood CSE 4000 Practical Issues in Software Engineering.
Installing Koha Presented By Aaron R. Williams KOHA North American Users Group.
Linux Administration. KDE & Gnome Comparision Package Management User Management Linux Services System Calls Default Look Menu Navigation Renaming Files.
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
System Administration Application Management. ● A common task for a system administrator is the installation, updating and removal of software. Several.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com Embedded Linux Training System.
Lab 07 Cisco Routers.
Chapter 9 Managing Software
Software management Operating systems I800
Linux Command RTFM: rpm(8) & yum(8)
Pkgng.
Archiving and Document Transfer Utilities
Chapter 7 Installing Program &Backup Tool
Ubuntu Working in Terminal
Lecture 13 RPM and its advantages.
More Scripting & Chapter 11
RedHat Package Management
A high-tech accounting software, QuickBooks is a highly trusted software by small and medium sized business. It streamlines accounting processes of a.
University of Texas Rio Grande Valley Systems Administration CSCI 6175
VERSION CONTROL SVN (SubVersioN)
Presentation transcript:

Debian Package Management DPKG and APT-GET in Debian and Ubuntu

dpkg dpkg command installs "packages" from *.deb files at any source location. Basic commands: dpkg -i | --install package_file... somefile.deb (install) dpkg -r | --remove | -P | --purge package ... | -a | --pending Remove an installed package. -r or --remove remove everything except configuration filesrpm –e somefile (remove) dpkg -u | --update-avail package Update .deb package dpkg -c | --contents filename List contents of a .deb package. dpkg -l | --list package-name-pattern List packages matching given pattern. dpkg -s | --status package-name Report status of specified package. dpkg -L | --listfiles package List files installed to your system from package. dpkg -S | --search filename-search-pattern ... Search for a filename from installed packages. dpkg -p | --print-avail package Display details about package .deb’s are digitally signed with a GPG key by the vendor to ensure trustworthiness.

dpkg files /etc/dpkg/dpkg.cfg: Configuration file with default options. The other files listed below are in their default directories, see option --admindir to see how to change locations of these files. /var/lib/dpkg/available: List of available packages. /var/lib/dpkg/status: Statuses of available packages. This file contains information about whether a package is marked for removing or not, whether it is installed or not, etc

Examples dpkg –i <packagename> (install) dpkg –l <packagename> (list) dpkg –r <packagename> (remove) dpkg –c <packagename> (contents) dpkg –s <packagename> (status) dpkg –L <packagename> (list files)

apt-get apt-get is a frontend to the dpkg command. It has the advantage of seeking the most recent updates on the Internet (if desired) and resolving most dependencies automatically. apt-get is setup to work off of Internet "repositories" on the Internet. Files containing these locations are listed in /etc/apt/sources.list this list can be updated using the apt-get update command. You can add your own *.repo file directories in the same format and import gpg keys using the rpm –import command to insure integrity of the site. Internet is usually required for how to configure the latest repositories. Remember just as in Windows, make sure you can trust the .deb source site.

apt-get Basic commands: apt-get update (look for .deb sources) apt-get install somefile (install the package and any dependencies) apt-get remove somefile (uninstall the package, leave directories intact) apt-get purge somefile (uninstall the package and all directories) apt-get autoremove removes packages that were installed by other packages and are no longer needed. apt-get upgrade or dist-upgrade (upgrade the package removing prior versions) apt-get source (source causes apt-get to fetch source packages) apt-get check (check is a diagnostic tool; it updates the package cache and checks for broken dependencies.) apt-get clean or auto-clean (clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/) apt-cache pkgnames This command provides a listing of every package in the system apt-cache search <search_term> (same as dpkg –l) apt-cache show <package_name> (same as dpkg –p)

apt-get files /etc/apt/sources.list :Locations to fetch packages from. /etc/apt/apt.conf :APT configuration file. See apt-config /etc/apt/apt.conf.d/: APT configuration file fragments /etc/apt/preferences: Version preferences file. This is where you would specify "pinning", i.e. a preference to get certain packages from a separate source or from a different version of a distribution. /var/cache/apt/archives/: Storage area for retrieved package files. /var/cache/apt/archives/partial/ :Storage area for package files in transit. /var/lib/apt/lists/: Storage area for state information for each package resource specified in sources.list /var/lib/apt/lists/partial/: Storage area for state information in transit. Configuration Item: Dir::State::Lists (implicit partial).

Examples: apt-cache search “packagestring” apt-cache show “packagestring” apt-cache showpkg “packagestring” apt-cache depends “packagestring” apt-file search “filename” apt-file list “packagestring” apt-get install “packagestring” apt-get remove “packagestring”, apt-get –purge remove apt-get –u install “packagestring”, apt-get –u upgrade apt-get update (update repository)