Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Install software  Package Pre-built rpm, yum, dpkg, … FreeBSD: pkg_add, pkg_delete, pkg_info.

Slides:



Advertisements
Similar presentations
 Two technologies › Packages › Ports  Packages › contains pre-compiled copies of all the commands for the application, as well as any configuration.
Advertisements

Exercise 1 – FreeBSD Installation Announced Date: 2006/9/20 Due Date: 2005/10/4.
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.
Software installation Chapter 7. Software installation Numerous software options Usually free Open source Several sources Installation CD Websites sourceforge.net.
Linux+ Guide to Linux Certification, Third Edition Chapter 11 Compression, System Backup, and Software Installation.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Package Managers What are they and why we use them.
Introduction to The Linaro Toolchain Embedded Processors Training Multicore Software Applications Literature Number: SPRPXXX 1.
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.
NSDI/NBII Clearinghouse Server Training Slide 1 NSDI/NBII Clearinghouse Server Training Yellowstone to Yukon Initiative 7. December University of.
Downloading & Installing Software Chapter 13. Maintaining the System Yum Pirut BitTiorrent Rpm Keeping Software Up To Date Up2date Red Hat Network Wget.
Debian package manager Presenter: Lilian Wang. Install Software  先別管 package 了, 你有聽過重灌嗎 ?  Chrome/Firefox, Office, pietty, Notepad++, PCMan, LOL, …
UNIX ™ /Linux Overview Unix/IP Preparation Course June 9, 2013 Lusaka, Zambia.
Linux Operations and Administration
Dustin Harman VM Workshop 2015 RPM Basics. What is RPM? Red Hat Package Manager Native package manager on RHEL, Fedora, SUSE, some Mandriva RPM/SRPM files.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
Trilinos 101: Getting Started with Trilinos November 7, :30-9:30 a.m. Mike Heroux Jim Willenbring.
Lab 11 Department of Computer Science and Information Engineering National Taiwan University Lab11 - Porting 2014/12/9/ 26 1.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
Package Management. Basic Commands apt-get install : install package + dependencies apt-get remove : removes the package not dependencies apt-get autoremove.
Maintain Installed Applications. Computer Center, CS, NCTU 2 In Ports Tree  / Makefile  COMMENT pkg-descr  WWW pkg-message  Shown after installed.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 25, 2014 Djibouti.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
1Offline Weekly Meeting May May 2006 AliRoot Build Integration and (Testing) System Peter Hristov Vagner Morais.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring Mike Phenow.
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…
Ant & Jar Ant – Java-based build tool Jar – pkzip archive, that contains metadata (a manifest file) that the JRE understands.
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.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
OS Project 0 February 25, Outline  Linux Installation  Linux Kernel Compilation  System Call Development  Kernel Modules / 452.
Getting Started with Trilinos October 14, :30-10:30 a.m. Jim Willenbring.
Software in the Data Protector Architecture
Linux development Lection What we gonna do today Root privileges Software packages Managing software packages Build procedures Build components.
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 configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring.
Your EC2 Instance. How to Connect to your EC2 Instance?
Tutorial on setting up Zebra: A Z39.50 Server ARD Prasad DRTC Indian Statistical Institute Bangalore.
Package Administration 3/14/ Software package administration adds software to systems and removes software from systems Sun and its third-party.
Learning Outcomes 1. Know software installation processes 2. Be able to prepare for software installation 3. Be able to install and configure software.
SA-NA Junction FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version  Installing FreeBSD  Update source and make world  Rebuild kernel.
Scientific Linux Inventory Project (SLIP) Troy Dawson Connie Sieh.
Building programs LinuxChix-KE. What happens in your CPU? ● It executes a small set of instructions called "machine code" ● Each instruction is just a.
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:
Packaging Software for Debian Roberto C. Sánchez Ohio Linuxfest Saturday, September 29, 2007.
FreeBSD ports & packages. FreeBSD ports & packages - overview Different UNIX distributions use differents package systems for distributing software Debian.
Installing Applications in FreeBSD
Application Maintenance Toolset (AMT) Applying Patches (CTPs)
Installation of the ALICE Software
Computer System Laboratory
Pkgng.
Install external command line softwares
Overview – SOE PatchTT November 2015.
Installing Applications in FreeBSD
Managing Software.
Build and Package CSE 403 section, 2011 Feb 3, Hao Lu.
Keeping Up-to-date AfNOG X Cairo, Egypt.
Ubuntu Working in Terminal
University of Texas Rio Grande Valley Systems Administration CSCI 6175
COP 4343 Unix System Administration
Overview Unit testing Building Version control.
Installing Applications in FreeBSD
FreeBSD ports & packages
Application Maintenance Toolset (AMT) Applying Patches (CTPs)
Presentation transcript:

Installing Applications in FreeBSD

Computer Center, CS, NCTU 2 Install software  Package Pre-built rpm, yum, dpkg, … FreeBSD: pkg_add, pkg_delete, pkg_info  Source Tar ball tar xzf certain-source.tar.gz cd certain-source./configure --help./configure [options …] make make install

Computer Center, CS, NCTU 3 Overview  Three technologies Packages Ports Tar ball  Packages pre-built ports, contain 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 and additional patches  a set of Makefile, patches, description files, …  Both packages and ports understand dependencies  Tar ball fetch it, configure the installation options, and compile it by yourself. NO DEPENDENCY CHECKING.

Computer Center, CS, NCTU 4 Overview  Package benefits Packages do not require any additional compilation  Benefit for slow machines  Ports benefits You can tweak the compilation options to generate code that is specific to a different processor – speed Some applications have compile time options relating to what they can and cannot do – customization  Why tar ball?

Computer Center, CS, NCTU 5 Package System  Tools sysinstall pkg_add, pkg_delete, pkg_info, pkg_version  pkg_add(1) pkg_add pkg_name # pkg_add lsof-4.82,4.tbz  ftp://ftp.tw.freebsd.org/pub/ports/amd64/packages-7.2-release/ 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  PACKAGEROOT environment variable –PACKAGEROOT=ftp://ftp.tw.freebsd.org –PACKAGEROOT= # pkg_add –r lsof

Computer Center, CS, NCTU 6 Managing Packages  pkg_info(1)  pkg_delete(1) # pkg_delete automake  pkg_version(1) ~ $ pkg_info OpenSP-1.5.2_1This package is a collection of SGML/XML tools called OpenS autoconf-2.62Automatically configure source code on many Un*x platforms autoconf-wrapper Wrapper script for GNU autoconf automake GNU Standards-compliant Makefile generator (1.10) automake-1.9.6_3GNU Standards-compliant Makefile generator (1.9) automake-wrapper Wrapper script for GNU automake docbook-1.4Meta-port for the different versions of the DocBook DTD docbook-4.1_3V4.1 of the DocBook DTD, designed for technical documentati docbook-4.2V4.2 of the DocBook DTD, designed for technical documentati x:~ -lwhsu- pkg_version -IvL = adns-1.4 < needs updating (index has 1.4_1) apache-2.2.6_1 < needs updating (index has 2.2.9) apr-gdbm-db _1 < needs updating (index has ) autoconf-2.61_2 < needs updating (index has 2.62)

Computer Center, CS, NCTU 7 How to use ports  Obtain the ports collection  We should… Find the application Change to the directory for the port  Ports will Fetch the tar ball Compile the source code Install your application  Deinstall process

Computer Center, CS, NCTU 8 Obtaining the Ports Collection  sysinstall  portsnap(8) Using HTTP, secure, diff fetch, extract, update, cron /etc/portsnap.conf  SERVERNAME=portsnap.tw.FreeBSD.org

Computer Center, CS, NCTU 9 Ports system (1)  Find your application cd /usr/ports make search name=program name make search key=string psearch(1)  ports-mgmt/psearch  /usr/ports/ / /usr/ports $ make search name=zh-mutt Port: zh-mutt-devel _ Path: /usr/ports/chinese/mutt Info: The Mongrel of Mail User Agents with Chinese support Maint: B-deps: autoconf-2.62 autoconf-wrapper automake automake-wrapper gettext-0.17_1 libiconv m ,1 perl-5.8.9_3 zh-autoconvert R-deps: gettext-0.17_1 libiconv mime-support zh-autoconvert WWW:

Computer Center, CS, NCTU 10 Ports system (2)  Type “make install clean” to install your application make config (/var/db/ports/) make fetch (/usr/ports/distfiles/) make checksum make extract make patch make configure make build  “make” means all of the above make install make clean make distclean

Computer Center, CS, NCTU 11 Ports system (3)  The ports system uses fetch(1) to download the filesfetch(1) MASTER_SITES environment variable /etc/make.conf  Options for ports make config hidden options  defined(BLAH) on Makefile  -DOPTIONS, OPTION=VALUE  CONFIGURE_ARGS+= MASTER_SITE_BACKUP?= \ MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}

Computer Center, CS, NCTU 12 Ports system (4)  I installed the application but Command not found… Logout, and then login. If you use (t)csh  rehash

Computer Center, CS, NCTU 13 Deinstall Applications  Two methods pkg_delete  Find the package name via pkg_info  Dependency check make deinstall  Change to the ports directory  make deinstall  Delete it anyway

Computer Center, CS, NCTU 14 Upgrading Ports using Portmaster  ports-mgmt/portmaster A utility for easily upgrading and installing ports It was designed to make use of the tools found in the base system  ports-mgmt/portupgrade  Install or upgrade a port # portmaster sysutils/lsof /usr/ports/UPDATING  Useful options -B, -D, -a, -r  Options # cd /usr/ports/ports-mgmt/portmaster # make install clean

Computer Center, CS, NCTU 15 Portaudit  ports-mgmt/portaudit check if installed ports are listed in a database of published security vulnerabilities portaudit –Fda lucky7:~ -lwhsu- sudo portaudit -Fda New database installed. Database created: Tue Dec 9 17:10:01 CST 2008 Affected package: php Type of problem: php5 -- potential magic_quotes_gpc vulnerability. Reference: 1 problem(s) in your installed packages found. You are advised to update or deinstall the affected package(s) immediately.

Computer Center, CS, NCTU 16 Try to install from ports  screen, tmux  vim, emacs  mutt  wget, curl  lftp  lynx, w3m  expect  zh-telnet