Maintain Installed Applications. Computer Center, CS, NCTU 2 In Ports Tree  / Makefile  COMMENT pkg-descr  WWW pkg-message  Shown after installed.

Slides:



Advertisements
Similar presentations
STScI Tiger Upgrade CPT Project Manager: Jim Grice Technical Manager: Mark Calvin.
Advertisements

Software Engineering – University of Tampere, CS DepartmentJyrki Nummenmaa INSTALLATIONS Software installation accommodates software.
 Two technologies › Packages › Ports  Packages › contains pre-compiled copies of all the commands for the application, as well as any configuration.
Copyright © 2008 Pearson Addison-Wesley. All rights reserved. Chapter 12 Separate Compilation Namespaces Simple Make Files (Ignore all class references.
Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies of.
Installing Applications Chia-Hung Tsai. Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
Source Code Management Or Configuration Management: How I learned to Stop Worrying and Hate My Co-workers Less.
Systems Software Operating Systems.
Package Managers What are they and why we use them.
Conceptual Architecture of PostgreSQL PopSQL Andrew Heard, Daniel Basilio, Eril Berkok, Julia Canella, Mark Fischer, Misiu Godfrey.
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.
Linux Operations and Administration
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
Tutorial 11 Installing, Updating, and Configuring Software
Introducing, Installing, and Upgrading Windows 7 Lesson 7.
CCA Port, Component & Application Build Skeleton Templates “A new script toolkit for generating CCA build skeletons” Torsten Wilde and James Kohl Oak Ridge.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
IT Essentials 1 v4.0 Chapters 4 & 5 JEOPARDY RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
System Administration HW1 huanghs. Computer Center, CS, NCTU 2 Requirements  Basic Install FreeBSD and upgrade to up-to-date –RELEASE Recompile your.
Trilinos 101: Getting Started with Trilinos November 7, :30-9:30 a.m. Mike Heroux Jim Willenbring.
Basic Service & Settings pmli. Basic Service e.g. http, ftp, etc.
1 Lecture 19 Configuration Management Software Engineering.
Section 1: Introducing Group Policy What Is Group Policy? Group Policy Scenarios New Group Policy Features Introduced with Windows Server 2008 and Windows.
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
Updating FireRMS Presented by Dan Cook Implementation Team Lead ZOLL.
Installing and Using Active Directory Written by Marc Zacharko.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Python From the book “Think Python”
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 / 22 AliRoot and AliEn Build Integration and Testing System.
Keeping Up-to-date AfNOG X Cairo, Egypt. Recap on FreeBSD design Distribution includes kernel, and some user-land binaries (bind, shells, network tools,
CERN-PH-SFT-SPI August Ernesto Rivera Contents Context Automation Results To Do…
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.
Security. Computer Center, CS, NCTU 2 FreeBSD Security Advisories 
Using the remote access option on the lab computers Fall 2005.
Semi-Automatic patch upgrade kit
Chapter 5 Files and Exceptions I. "The Practice of Computing Using Python", Punch & Enbody, Copyright © 2013 Pearson Education, Inc. What is a file? A.
Installation of packages Objectives –Using software packaging tools Contents –Application delivered as –Where to get commonly used rpm’s –Autofs on! –Getting.
SA-NA Junction. FreeBSD Branches/Tags Three parallel development branches: -RELEASE Latest Release version 7.0 January 2009, 6.3 November 2008
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Build Tools 1. Building a program for a large project is usually managed by a build tool that controls the various steps involved. These steps may include:
Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Install software  Package Pre-built rpm, yum, dpkg, … FreeBSD: pkg_add, pkg_delete, pkg_info.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 UC 7.0 Install and Upgrade Changes TOI Josh Rose UCBU Software Engineer.
Package Administration 3/14/ Software package administration adds software to systems and removes software from systems Sun and its third-party.
Page 1 Viruses. Page 2 What Is a Virus A virus is basically a computer program that has been written to perform a specific set of tasks. Unfortunately,
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
SA-NA Junction FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version  Installing FreeBSD  Update source and make world  Rebuild kernel.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
Windows Vista Configuration MCTS : Internet Explorer 7.0.
11 DEPLOYING AN UPDATE MANAGEMENT INFRASTRUCTURE Chapter 6.
Building programs LinuxChix-KE. What happens in your CPU? ● It executes a small set of instructions called "machine code" ● Each instruction is just a.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
Updating FreeBSD Unix System Administration. Objectives At the end of this session you should be able to: 1. Understand the differences between the CURRENT.
Installing Applications in FreeBSD
Development Environment
Pkgng.
SQL and SQL*Plus Interaction
Automation System (OPAC) Tutorial
Keeping Up-to-date AfNOG X Cairo, Egypt.
Lecture 13 RPM and its advantages.
IS3440 Linux Security Unit 7 Securing the Linux Kernel
Conceptual Architecture of PostgreSQL
Conceptual Architecture of PostgreSQL
Post Install Configuration FreeBSD
Installing Applications in FreeBSD
FreeBSD ports & packages
NAVIGATING THE MINEFIELD
Presentation transcript:

Maintain Installed Applications

Computer Center, CS, NCTU 2 In Ports Tree  / Makefile  COMMENT pkg-descr  WWW pkg-message  Shown after installed files/*

Computer Center, CS, NCTU 3 Some Tools in FreeBSD System  pkg_add, pkg_delete, pkg_info  pkg_version summarize installed versions of packages  pkg_create create software package distributions  pkg_updating displaying UPDATING entries of software packages

Computer Center, CS, NCTU 4 pkg_version (1)  pkg_version  pkg_version –v  pkg_version –v –L = apr-gdbm-db42 < autoconf = automake = apr-gdbm-db _1 < needs updating (port has ) autoconf-2.62 = up-to-date with port automake = up-to-date with port automake-1.6.3_1 = up-to-date with port automake-1.9.6_3 = up-to-date with port apr-gdbm-db _1 < needs updating (port has )

Computer Center, CS, NCTU 5 pkg_version (2)  Ports collection index file /usr/ports/INDEX-7  To get new INDEX file cd /usr/ports ; make index(very slow) cd /usr/ports ; make fetchindex(faster, pre-build in server side)  /etc/portsnap.conf # List of INDEX files to build and the DESCRIBE file to use for each INDEX INDEX-5 DESCRIBE.5 INDEX INDEX-6 DESCRIBE.6 INDEX INDEX-7 DESCRIBE.7

Computer Center, CS, NCTU 6 pkg_updating (1)  See /usr/ports/UPDATING before upgrading ports  pkg_updating postfix  pkg_updating –d postfix : AFFECTS: users of mail/postfix-postfwd AUTHOR: Sahil Tandon ……………………………………………… : ………………………… : AFFECTS: users of mail/postfix-current AUTHOR:

Computer Center, CS, NCTU 7 pkg_updating (2)  pkg_updating libtool : The devel/libtool15 and devel/libltdl15 ports have been moved to libtool22 and libltdl22, respectively, then updated to 2.2.6a. You will need to run portmaster or portupgrade to properly perform the upgrade: Portmaster: portmaster -o devel/libtool22 devel/libtool15 portmaster -o devel/libltdl22 devel/libltdl15 Portupgrade: portupgrade -o devel/libtool22 libtool-1.5\* portupgrade -o devel/libltdl22 libltdl-1.5\* After that, you will need to rebuild all ports that depend on libltdl. Since all dependent ports' PORTREVISIONs have been bumped, you can run portupgrade or portmaster with '-a' to complete the upgrade.

Computer Center, CS, NCTU 8 Useful Tools in ports-mgmt/  portupgrade  portmaster  portconf  pkg_replace  portaudit  pkg_cutleaves  pkg_rmleaves

Computer Center, CS, NCTU 9 portupgrade (1)  FreeBSD ports/packages administration and management tool suite  Useful options: -a, -R, -r, -N, -f, -n  Other useful commands portinstall = portupgrade -N portversion  Similar to pkg_version  It check version info stores in /usr/ports/INDEX-7.db (built from INDEX-7) pkg_deinstall pkgdb portsdb

Computer Center, CS, NCTU 10 portupgrade (2)  Written by ruby  Create its own database for dependency checking  Preserve old shared libraries  Config: /usr/local/etc/pkgtools.conf Only available when using portupgrade Use portconf, instead.  It is such a useful tool…  But slow.

Computer Center, CS, NCTU 11 portmaster (1)  Manage your ports without external databases or languages Update the port whether there is a new version for it or not. Recurse through the port and all of its dependencies (if any) to handle any port.  Useful options: -B: prevents creation of the backup package for the installed port -D: no cleaning of distfiles -t: recurse dependencies thoroughly, using all-depends-list -w: save old shared libraries before deinstall -u: unattended mode -- accept defaults for all but ‘make config’ -a: check all ports, update as necessary -x: avoid building or updating ports that match this pattern

Computer Center, CS, NCTU 12 portmaster (2)  Useful options: [-R] -f : always rebuild ports [-R] -r: rebuild the specified port, and all ports that depend on it -R: restart an update, skipping ports already up to date. -L list all installed ports by category, and search for updates -n: run through configure, but do not make or install any ports  Config: /usr/local/etc/portmaster.rc

Computer Center, CS, NCTU 13 portconf  A universal tool to set specific port knobs  Write something in /etc/make.conf  Config: /usr/local/etc/ports.conf  files/pkg-message.in # this is a comment *: NOPORTDOCS editors/openoffice.org-2: WITH_CCACHE | LOCALIZED_LANG=it print/ghostscript-* print/lpr-wrapper: A4 sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc"

Computer Center, CS, NCTU 14 pkg_replace  A utility for upgrading installed packages compatible with portupgrade and can be used as an alternative to portupgrade and portmaster.  In ports:  In sourceforge page: 0.9.0(RC2)  Support binary package installation

Computer Center, CS, NCTU 15 portaudit (1)  portaudit Checks installed ports against a list of security vulnerabilities portaudit –Fda  -F: Fetch the current database from the FreeBSD servers.  -d: Print the creation date of the database.  -a: Print a vulnerability report for all installed packages.  Security Output

Computer Center, CS, NCTU 16 portaudit (2)  portaudit -Fda auditfile.tbz 100% of 58 kB 38 kBps New database installed. Database created: Tue Nov 17 16:50:00 CST 2009 Affected package: libpurple Type of problem: pidgin -- MSN overflow parsing SLP messages. Reference: Affected package: finch Type of problem: pidgin -- MSN overflow parsing SLP messages. Reference: 2 problem(s) in your installed packages found. You are advised to update or deinstall the affected package(s) immediately.

Computer Center, CS, NCTU 17 pkg_cutleaves  pkg_cutleaves Interactive script for deinstalling “leaf” packages Use a lot of commands supported by portupgrade  pkg_rmleaves Interactive script for deinstalling “leaf” packages Once the packages marked for removal have been flushed/deinstalled, you'll be asked if you want to do another run. -l: List leaf packages only, one per line, and don't ask for anything to be deinstalled.

Computer Center, CS, NCTU 18 Trouble Shooting (1)  See the error message. *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_int. *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src.

Computer Center, CS, NCTU 19 Trouble Shooting (2)  Try to recognize why the error occurs. The depending libraries are too old? Patch error? Configure error? Compile error?  What can I do? Update your ports tree Upgrade the libraries Try again Google it