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

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

FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.
The Division of Labor on a Campus Hosting Open Journal Systems and Open Conference Systems.
Server-Side vs. Client-Side Scripting Languages
Exercise 1 – FreeBSD Installation Announced Date: 2006/9/20 Due Date: 2005/10/4.
The Apache Web Server  Started in April 1996 as an open source multiplatform web server (Windows, FreeBSD, UNIX, and Linux compatible).  Now the world’s.
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.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
.NET On A Shoe String By: Patrick Brannen Lead Developer iDevCo, Inc.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
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.
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
Apache Tomcat Web Server SNU OOPSLA Lab. October 2005.
Linux Operations and Administration
Introducing, Installing, and Upgrading Windows 7 Lesson 7.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
Informatics 43 – May 21, A quote from Piazza “This course is trying to teach you how to be a PM (product manager).”
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.
Web Indexing and Searching By Florin Zidaru. Outline Web Indexing and Searching Overview Swish-e: overview and features Swish-e: set-up Swish-e: demo.
Updating FireRMS Presented by Dan Cook Implementation Team Lead ZOLL.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
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.
Managing Software Patches 10/15/ Introducing Solaris OE Patches A patch contains collection of files and directories Patch replaces existing files.
2006 Adobe Systems Incorporated. All Rights Reserved. Designing & Building Structured Business Reports with ColdFusion MX 7 Adam Lehman ColdFusion Specialist.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring Mike Phenow.
IsisOnline Manual Publishing your CDS/ISIS databases is very easy! Ismail Fahmi KMRG ITB.
1 / 22 AliRoot and AliEn Build Integration and Testing System.
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,
CERN-PH-SFT-SPI August Ernesto Rivera Contents Context Automation Results To Do…
Samba – Good Just Keeps Getting Better The new and not so new features available in Samba, and how they benefit your organization. Copyright 2002 © Dustin.
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.
Copyright © 2006, Zend Technologies Inc. John’s Top PECL Picks John Coggeshall.
Apache with SSL and php Apache with ssl support should be the basic platform for providing web services... There are several different implementations.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
Imagine Creating Software Without a Single Line of Code!
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
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.
Installing Applications in FreeBSD. Computer Center, CS, NCTU 2 Install software  Package Pre-built rpm, yum, dpkg, … FreeBSD: pkg_add, pkg_delete, pkg_info.
SA-NA Junction FreeBSD. Computer Center, CS, NCTU 2 Outline  FreeBSD version  Installing FreeBSD  Update source and make world  Rebuild kernel.
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.
Installing Applications in FreeBSD
Chapter 3 Installing and Learning Software
Homework #01 FreeBSD Installation
Pkgng.
Overview – SOE PatchTT November 2015.
Installing Applications in FreeBSD
Installation, Configuration, Examples of use
Keeping Up-to-date AfNOG X Cairo, Egypt.
Ubuntu Working in Terminal
Apache Tomcat Web Server
Installing Applications in FreeBSD
FreeBSD ports & packages
NAVIGATING THE MINEFIELD
Web Application Development Using PHP
Presentation transcript:

 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

 Package benefits › 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 building options to let you tweak the features you want

 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

 pkg_info(1)  pkg_version(1)  pkg_delete(1) # pkg_delete xchat x:~ -lwhsu- pkg_info adns-1.4 Easy to use, asynchronous-capable DNS client library and ut amap-5.2 Application mapper apache-2.2.6_1 Version 2.2 of Apache web server with prefork MPM. apr-gdbm-db _1 The Apache Group's Portability Library autoconf-2.61_2 Automatically configure source code on many Un*x platforms 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)

 Find your application › cd /usr/ports › make search name=program name › make search key=string › psearch(1)  ports-mgmt/psearch  change to the directory for the port you want to install  Type “make install clean” to install your application › make › make install › make clean

 When your type “make”, the ports system uses fetch(1) to download the files › MASTER_SITES › /etc/make.conf  Using pkg_delete pkg_name to delete your application MASTER_SITE_BACKUP?= \ MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP} MASTER_SORT_REGEX= \.tw/ \.tw\. \.edu/ \.edu\.

 sysinstall/cd-rom  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?  portsnap(8) › portsnap fetch › portsnap extract › portsnap update › Portsnap cron SUP_UPDATE= yes SUP= /usr/bin/csup SUPFILE= /usr/local/etc/src-supfile PORTSSUPFILE= /usr/local/etc/ports-supfile SUPFLAGS= -L 2 SUPHOST= freebsd.cs.nctu.edu.tw

 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=

 portaudit › check if installed ports are listed in a database of published security vulnerabilities › security/portaudit › 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.

 Update ports tree  /usr/ports/UPDATING  cd /usr/ports && make fetchindex  portsdb –Fu (you don’t need this in most of time) › Generate the ports database named INDEX.db from INDEX › make  pkgdb -F › An interactive tool for fixing the package registry database  portupgrade -a  portinstall again  “ports-mgmt” category in ports/