Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies of.

Slides:



Advertisements
Similar presentations
Drivers and the kernel1-1 Drivers and the kernel UNIX system has three layers: m The hardware m The operating system kernel m The user-level programs Kernel.
Advertisements

 Two technologies › Packages › Ports  Packages › contains pre-compiled copies of all the commands for the application, as well as any configuration.
Toolbox Mirror -Overview Effective Distributed Learning.
Exercise 1 – FreeBSD Installation Announced Date: 2006/9/20 Due Date: 2005/10/4.
Installing Applications Chia-Hung Tsai. Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies.
MCT260-Operating Systems I Operating Systems I Managing Your System.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Deploying and Managing Software by Using Group Policy.
NSDI/NBII Clearinghouse Server Training Slide 1 NSDI/NBII Clearinghouse Server Training Yellowstone to Yukon Initiative 7. December University of.
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.
Module 1: Introduction to Microsoft SQL Server 7.0.
Introducing, Installing, and Upgrading Windows 7 Lesson 7.
ITE 1 Chapter 5. Chapter 5 is a Large Chapter It has a great deal of useful information about operating systems. You will find this VERY helpful when.
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.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
Updating FireRMS Presented by Dan Cook Implementation Team Lead ZOLL.
Scalable Game Development William Roberts Senior Game Engineer
Maintain Installed Applications. Computer Center, CS, NCTU 2 In Ports Tree  / Makefile  COMMENT pkg-descr  WWW pkg-message  Shown after installed.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
Module 7 Configure User and Computer Environments By Using Group Policy.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring Mike Phenow.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
Recover Your Data Quickly: Disaster Recovery Techniques with ARCserve  Disaster Recovery.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 13 Understanding and Installing Windows 2000 and Windows NT.
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Chapter 3 Installing and Learning Software. 2Practical PC 5 th Edition Chapter 3 Getting Started In this Chapter, you will learn: − What is in an application.
Keeping Up-to-date AfNOG X Cairo, Egypt. Recap on FreeBSD design Distribution includes kernel, and some user-land binaries (bind, shells, network tools,
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.
1 / 61 Using the Customer Support Web Site © 2006, Universal Tax Systems, Inc. All Rights Reserved. Customer Support Site Objectives –In this chapter you.
CS Capstone OS Tools for OpenBSD Overview Presentation Team Fugu.
FreeBSD Software Management. WatITis | Collaboration in a Distributed Environment | December 2, 2003 | Automagic Software Management Overview FreeBSD.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
LDAP (Lightweight Directory Access Protocol)
Yannick Patois - Datagrid Software Repository Presentation - March, n° 1 Datagrid Software Repository Presentation CVS, packages and automatic.
Software in the Data Protector Architecture
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.
How to Fix Binkw32.dll Error
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring.
Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Install software  Package Pre-built rpm, yum, dpkg, … FreeBSD: pkg_add, pkg_delete, pkg_info.
Post Install Configuration FreeBSD SANOG 9 January 14, 2007 Colombo, Sri Lanka Hervey Allen.
Package Administration 3/14/ Software package administration adds software to systems and removes software from systems Sun and its third-party.
Chapter 7: Delivery, Installation, and Documentation Ronald J. Leach Copyright Ronald J. Leach, 1997, 2009, 2014,
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
SA-NA Junction FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version  Installing FreeBSD  Update source and make world  Rebuild kernel.
HOW TO FIX MSVCR100. DLL IS MISSING ERROR? missing-error.
The CRUX Project Presented by Per Liden, Johannes Winkelmann, Matt Housh, Jay Dolan CRUX is a lightweight, i686-optimized Linux distribution targeted at.
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.
Optimizing your windows system. Windows updates Updates Security updates Feature updates Driver updates Service pack A group of features & Security updates.
Managing User Desktops with Group Policy
Installing Applications in FreeBSD
Application Maintenance Toolset (AMT) Applying Patches (CTPs)
Chapter 3 Installing and Learning Software
Homework #01 FreeBSD Installation
Pkgng.
Overview – SOE PatchTT November 2015.
Installing Applications in FreeBSD
5.0 : Windows Operating System
Build and Package CSE 403 section, 2011 Feb 3, Hao Lu.
Keeping Up-to-date AfNOG X Cairo, Egypt.
Ubuntu Working in Terminal
Installing Applications in FreeBSD
FreeBSD ports & packages
NAVIGATING THE MINEFIELD
Application Maintenance Toolset (AMT) Applying Patches (CTPs)
Presentation transcript:

Installing Applications in FreeBSD

Computer Center, CS, NCTU 2 Overview  Two technologies Packages Ports  Packages contains pre-compiled copies of all the commands for the application, as well as any configuration files or documentation  Ports a collection of files designed to automate the process of compiling an application from source code  Both packages and ports understand dependencies

Computer Center, CS, NCTU 3 Overview  Package benefits tarball is typically smaller Packages do not require any additional compilation  Ports benefits you can tweak the compilation options to generate code that is specific to a different processor Some applications have compile time options relating to what they can and cannot do

Computer Center, CS, NCTU 4 Package System  pkg_add(1) pkg_add pkg_name # pkg_add lsof tgz pkg_add -r pkg_name  If you don’t have a source of local packages  If you are using FreeBSD-CURRENT or FreeBSD-STABLE, pkg_add will download the latest version of your application  If your are using FreeBSD-RELEASE, it will grab the version of the package that was built with your release  PACKAGESITE environment variable

Computer Center, CS, NCTU 5 Managing Packages  pkg_info(1)  pkg_version(1)  pkg_delete(1) # pkg_delete xchat-1.7.1

Computer Center, CS, NCTU 6 Ports system  Find your application cd /usr/ports make search name=program name make search key=string  change to the directory for the port you want to install  Type “make install clean” to install your application make make install make clean

Computer Center, CS, NCTU 7 Ports system  When your type “make”, the ports system uses fetch(1) to download the filesfetch(1) MASTER_SITES environment variable make MASTER_SITE_OVERRIDE= \ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch /etc/make.conf  Using pkg_delete pkg_name to delete your application

Computer Center, CS, NCTU 8 Obtaining the Ports Collection  sysinstall  cvsup (or csup, … etc) /usr/bin/csup -L 2 /usr/local/etc/cvsup-ports Or you can do “make update” in ports directory if your make.conf was set properly.  What is needed?  cd-rom  Using cvsup to update your ports collection SUP_UPDATE= yes SUP= /usr/bin/csup SUPFILE= /usr/local/etc/cvsup-src PORTSSUPFILE= /usr/local/etc/cvsup-ports SUPFLAGS= -L 2

Computer Center, CS, NCTU 9 Upgrading Ports using portupgrade  pkg_version summarize installed versions of packages Useful options: -v, -L  portupgrade The utility is designed to easily upgrade installed ports cd /usr/ports/ports-mgmt/portupgrade; make install clean Useful options: -a, -R, -r, -N portinstall = portupgrade -N portversion  Similar to pkg_version  It check version info stores in /usr/ports/INDEX-6.db (built from INDEX-6)  To get new INDEX file cd /usr/ports ; make index(very slow) cd /usr/ports ; make fetchindex(faster, pre-build in server side) (portsdb -F)  Try this command flow: cd /usr/ports ; make update fetchindex ; portversion -vL=

Computer Center, CS, NCTU 10 portaudit  portaudit check if installed ports are listed in a database of published security vulnerabilities portinstall portaudit portaudit -Fa

Computer Center, CS, NCTU 11 Installation failed  cvsup ports tree  /usr/ports/UPDATING  portsdb -Fu Generate the ports database named INDEX.db from INDEX  pkgdb -F An interactive tool for fixing the package registry database  portupgrade -aR  portinstall again