Portable Software-Installation Mit Pkgsrc

Total Page:16

File Type:pdf, Size:1020Kb

Portable Software-Installation Mit Pkgsrc Universität Bielefeld Rainer Orth Portable Software-Installation mit pkgsrc Dipl.-Chem. Rainer Orth Technische Fakultät Universität Bielefeld [email protected] AG Rechnerbetrieb SS 2006 pkgsrc 1 von 12 Universität Bielefeld Rainer Orth Übersicht • Problemstellung • Benutzersicht • Parallelinstallationen: Package Views • Entwicklersicht • Probleme • Alternativen AG Rechnerbetrieb SS 2006 pkgsrc 2 von 12 Universität Bielefeld Rainer Orth Software-Installation: Der Status Quo • manuelles Bauen aus den Quellen für verschiedene Plattformen – zeitaufwendig – mühselig – verschiedene Versionsstände, keine problemlosen Updates wegen Abhängigkeiten – zunehmende Zahl von Abhängigkeiten – zahlreiche Packages kommen mit Volume-Struktur nicht gut zurecht – kein Tracking installierter Software AG Rechnerbetrieb SS 2006 pkgsrc 3 von 12 Universität Bielefeld Rainer Orth Problemstellung • Ziel: einheitliche plattformübergreifende Software-Installation • mindestens für Linux, Mac OS X, Solaris; gut, wenn auch IRIX und Tru64 UNIX • Option: native Package-Systeme (Blastwave, Sun Freeware, Fink, . ) – Einzelmaschinen-orientiert – plattformabhängig – keine einfache lokale Konfiguration – Binary Packages stellen verschiedene Software-Versionen in verschiedenen Konfigurationen bereit – schwierige Parallel-Installation verschiedener Versionen AG Rechnerbetrieb SS 2006 pkgsrc 4 von 12 Universität Bielefeld Rainer Orth pkgsrc • Framework zum Bauen und Installieren von Software-Paketen • entstanden aus FreeBSD ports, ursprünglich nur für NetBSD (August 1997) • inzwischen: Unterstützung von 12 Plattformen: AIX, *BSD, IRIX, Linux, Mac OS X, Solaris, Tru64 UNIX, Windows (via Interix) • basiert auf BSD Make (bmake) • unterstützt Bauen aus den Quellen und Binärpackages • 6110 Software-Pakete in ca. 50 Kategorien inkl. Meta-Packages (zwei CVS-Branches: stable und current) • weitere 2400 Packete via pkgsrc-wip: Work in Progress AG Rechnerbetrieb SS 2006 pkgsrc 5 von 12 Universität Bielefeld Rainer Orth Features • Installation in einheitlichen Directory-Baum (/usr/pkg per Default) • Berücksichtigung von Dependencies • portabel, plattform-übergreifend einheitlich • Unterstützung verschiedener Compiler: nativer cc, gcc, distcc, ccache • Konfigurationsmöglichkeiten über mk.conf: – Directories – Optionen (global und pro Package) AG Rechnerbetrieb SS 2006 pkgsrc 6 von 12 Universität Bielefeld Rainer Orth Benutzersicht • Installation von Binärpackages mit pkg_add • Installation aus den Quellen: – zunächst: pkgsrc-Bootstrap – NetBSD-Compat-Library, bmake, ggfs. Ersatz für einige native Tools (sed, ftp, . ) • dann: cd <pkgsrc>/<category>/<package>; bmake install • Schritte beim Bauen: fetch, checksum, extract, patch, tools, wrapper, configure, build, test, install, package • Möglichkeit lokaler Patches • Security-Checks mit audit_packages AG Rechnerbetrieb SS 2006 pkgsrc 7 von 12 Universität Bielefeld Rainer Orth Parallelinstallationen mit Package Views • Problem: verschiedene Versionen der gleichen Software parallel bereitstellen (z.B. für Tests oder bei Inkompatibilitäten) • mit Package Views: Installation in ein Directory pro Version (Default: /usr/pkg/packages/<pkg>) • verschiedene Views (i.e. Symlinks-Trees) möglich, z.B. Default, Test, . AG Rechnerbetrieb SS 2006 pkgsrc 8 von 12 Universität Bielefeld Rainer Orth Entwicklersicht • benötigt werden: Makefile, DESCR, PLIST (wird bei Package Views dynamisch erzeugt), distinfo, ggfs. Patches • Tools zur Unterstützung: url2pkg, pkglint AG Rechnerbetrieb SS 2006 pkgsrc 9 von 12 Universität Bielefeld Rainer Orth Probleme • manche Packages recht alt • systemnahe Packages fehlen u.U. ganz (z.B. ntp, amd, . ) • Packages lassen sich nicht bauen (aber meist Upstream-Problem) AG Rechnerbetrieb SS 2006 pkgsrc 10 von 12 Universität Bielefeld Rainer Orth Alternativen • OpenPKG: Projekt von Ralf S. Engelschall, Cable & Wireless – RPM-basiert – eingeschränkter Satz von Packages (vor allem Server-Software) – primär für FreeBSD, Linux, Solaris • The Written Word – kommerziell, kostenpflichtig – basiert auf Wrappern um native Package-Tools – eingeschränkte Sammlung von Packages AG Rechnerbetrieb SS 2006 pkgsrc 11 von 12 Universität Bielefeld Rainer Orth Weitere Informationen • pkgsrc: The NetBSD Packages Collection: http://www.pkgsrc.org/ • Web-Frontend zu pkgsrc: http://pkgsrc.se/ • pkgsrc-Work In Progress: http://pkgsrc-wip.sourceforge.net/ • OpenPKG: http://www.openpkg.org/ • The Written Word: http://www.thewrittenword.com/ AG Rechnerbetrieb SS 2006 pkgsrc 12 von 12.
Recommended publications
  • Opensource Software in Mac OS X V. Zhhuta
    Foss Lviv 2013 191 - Linux VM з Wordpress на Azure під’єднано до SQL-бази в приватному центрі обробки даних. Як бачимо, бізнес Microsoft вже дуже сильно зав'язаний на Open Source! Далі в доповіді будуть розглянуті подробиці інтероперабельності платформ з Linux Server, Apache Hadoop, Java, PHP, Node.JS, MongoDb, і наостанок дізнаємося про цікаві Open Source-розробки Microsoft Research. OpenSource Software in Mac OS X V. Zhhuta UK2 LImIted t/a VPS.NET, [email protected] Max OS X stem from Unix: bSD. It contains a lot of things that are common for Unix systems. Kernel, filesystem and base unix utilities as well as it's own package managers. It's not a secret that Mac OS X has a bSD kernel Darwin. The raw Mac OS X won't provide you with all power of Unix but this could be easily fixed: install package manager. There are 3 package manager: MacPorts, Fink and Homebrew. To dive in OpenSource world of mac os x we would try to install lates version of bash, bash-completion and few other utilities. Where we should start? First of all you need to install on you system dev-tools: Xcode – native development tools that contain GCC and libraries. Next step: bring a GIU – X11 into your system. Starting from Mac OS 10.8 X11 is not included in base-installation and it's need to install Xquartz(http://xquartz.macosforge.org). Now it's time to look closely to package managers MacPorts Site: www.macports.org Latest MacPorts release: 2.1.3 Number of ports: 16740 MacPorts born inside Apple in 2002.
    [Show full text]
  • Getting Started Guide for Freebsd Release 18.11.11
    Getting Started Guide for FreeBSD Release 18.11.11 Jan 20, 2021 CONTENTS 1 Introduction 1 1.1 Documentation Roadmap...............................1 2 Installing DPDK from the Ports Collection3 2.1 Installing the DPDK FreeBSD Port..........................3 2.2 Compiling and Running the Example Applications.................3 3 Compiling the DPDK Target from Source6 3.1 System Requirements.................................6 3.2 Install the DPDK and Browse Sources........................7 3.3 Installation of the DPDK Target Environments...................7 3.4 Browsing the Installed DPDK Environment Target.................8 3.5 Loading the DPDK contigmem Module.......................8 3.6 Loading the DPDK nic_uio Module..........................9 4 Compiling and Running Sample Applications 12 4.1 Compiling a Sample Application........................... 12 4.2 Running a Sample Application............................ 13 4.3 Running DPDK Applications Without Root Privileges............... 14 5 EAL parameters 15 5.1 Common EAL parameters.............................. 15 5.2 FreeBSD-specific EAL parameters.......................... 17 i CHAPTER ONE INTRODUCTION This document contains instructions for installing and configuring the Data Plane Development Kit (DPDK) software. It is designed to get customers up and running quickly and describes how to compile and run a DPDK application in a FreeBSD application (bsdapp) environment, without going deeply into detail. For a comprehensive guide to installing and using FreeBSD, the following handbook is available from the FreeBSD Documentation Project: FreeBSD Handbook. Note: The DPDK is now available as part of the FreeBSD ports collection. Installing via the ports collection infrastructure is now the recommended way to install the DPDK on FreeBSD, and is documented in the next chapter, Installing DPDK from the Ports Collection.
    [Show full text]
  • Absolute BSD—The Ultimate Guide to Freebsd Table of Contents Absolute BSD—The Ultimate Guide to Freebsd
    Absolute BSD—The Ultimate Guide to FreeBSD Table of Contents Absolute BSD—The Ultimate Guide to FreeBSD............................................................................1 Dedication..........................................................................................................................................3 Foreword............................................................................................................................................4 Introduction........................................................................................................................................5 What Is FreeBSD?...................................................................................................................5 How Did FreeBSD Get Here?..................................................................................................5 The BSD License: BSD Goes Public.......................................................................................6 The Birth of Modern FreeBSD.................................................................................................6 FreeBSD Development............................................................................................................7 Committers.........................................................................................................................7 Contributors........................................................................................................................8 Users..................................................................................................................................8
    [Show full text]
  • About Basictex-2021
    About BasicTeX-2021 Richard Koch January 2, 2021 1 Introduction Most TeX distributions for Mac OS X are based on TeX Live, the reference edition of TeX produced by TeX User Groups across the world. Among these is MacTeX, which installs the full TeX Live as well as front ends, Ghostscript, and other utilities | everything needed to use TeX on the Mac. To obtain it, go to http://tug.org/mactex. 2 Basic TeX BasicTeX (92 MB) is an installation package for Mac OS X based on TeX Live 2021. Unlike MacTeX, this package is deliberately small. Yet it contains all of the standard tools needed to write TeX documents, including TeX, LaTeX, pdfTeX, MetaFont, dvips, MetaPost, and XeTeX. It would be dangerous to construct a new distribution by going directly to CTAN or the Web and collecting useful style files, fonts and so forth. Such a distribution would run into support issues as the creators move on to other projects. Luckily, the TeX Live install script has its own notion of \installation packages" and collections of such packages to make \installation schemes." BasicTeX is constructed by running the TeX Live install script and choosing the \small" scheme. Thus it is a subset of the full TeX Live with exactly the TeX Live directory structure and configuration scripts. Moreover, BasicTeX contains tlmgr, the TeX Live Manager software introduced in TeX Live 2008, which can install additional packages over the network. So it will be easy for users to add missing packages if needed. Since it is important that the install package come directly from the standard TeX Live distribution, I'm going to explain exactly how I installed TeX to produce the install package.
    [Show full text]
  • Implementing Powerpc Linux on System I Platform
    Front cover Implementing POWER Linux on IBM System i Platform Planning and configuring Linux servers on IBM System i platform Linux distribution on IBM System i Platform installation guide Tips to run Linux servers on IBM System i platform Yessong Johng Erwin Earley Rico Franke Vlatko Kosturjak ibm.com/redbooks International Technical Support Organization Implementing POWER Linux on IBM System i Platform February 2007 SG24-6388-01 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. Second Edition (February 2007) This edition applies to i5/OS V5R4, SLES10 and RHEL4. © Copyright International Business Machines Corporation 2005, 2007. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix The team that wrote this redbook. ix Become a published author . xi Comments welcome. xi Chapter 1. Introduction to Linux on System i platform . 1 1.1 Concepts and terminology . 2 1.1.1 System i platform . 2 1.1.2 Hardware management console . 4 1.1.3 Virtual Partition Manager (VPM) . 10 1.2 Brief introduction to Linux and Linux on System i platform . 12 1.2.1 Linux on System i platform . 12 1.3 Differences between existing Power5-based System i and previous System i models 13 1.3.1 Linux enhancements on Power5 / Power5+ . 14 1.4 Where to go for more information . 15 Chapter 2. Configuration planning . 17 2.1 Concepts and terminology . 18 2.1.1 Processor concepts .
    [Show full text]
  • PORTS REPORT by Thomas Abthorpe
    The First PORTS REPORT by Thomas Abthorpe elcome to the inaugural Ports review for completeness. Do not get frustrated; sometimes a port has to be tweaked a couple of Report column for the new times before it compiles cleanly. WFreeBSD Journal. I am Thomas Abthorpe, the FreeBSD Ports Management WHAT’S NEW IN THE PORTS TREE? Team secretary, aka portmgr-secretary@. The nature of the ports tree is that it is forever It seemed to be a natural fit for me to be evolving, growing, and being updated with new asked to do this column, as I take care of software. From time to time, notable changes are inserted into the infrastructure that improve most of the correspondence for the team. and/or alter how ports are built. In July 2013, So what can you look forward to reading in pkg_install stopped being built on 10-CUR- the Ports Report? It will be a summary of RENT, this was done in anticipation of pkng. In September 2013, Stack Protector support was recent activity in the Ports infrastructure, introduced for amd64 and i386 in 10-CURRENT. news in the world of Ports, tips and tricks, One of the newest additions to the infrastruc- plus whatever bits of trivia I can slip in. ture is staging, whichg allows a port to be built into staged directory, instead of getting installed into a production environment. Among RESOURCES TO BUILD AND other functionality, this allows a package to be TEST YOUR PORTS created and bundled with a non-privileged eing a porter is one of the easiest ways to con- account.
    [Show full text]
  • The Complete Freebsd
    The Complete FreeBSD® If you find errors in this book, please report them to Greg Lehey <grog@Free- BSD.org> for inclusion in the errata list. The Complete FreeBSD® Fourth Edition Tenth anniversary version, 24 February 2006 Greg Lehey The Complete FreeBSD® by Greg Lehey <[email protected]> Copyright © 1996, 1997, 1999, 2002, 2003, 2006 by Greg Lehey. This book is licensed under the Creative Commons “Attribution-NonCommercial-ShareAlike 2.5” license. The full text is located at http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode. You are free: • to copy, distribute, display, and perform the work • to make derivative works under the following conditions: • Attribution. You must attribute the work in the manner specified by the author or licensor. • Noncommercial. You may not use this work for commercial purposes. This clause is modified from the original by the provision: You may use this book for commercial purposes if you pay me the sum of USD 20 per copy printed (whether sold or not). You must also agree to allow inspection of printing records and other material necessary to confirm the royalty sums. The purpose of this clause is to make it attractive to negotiate sensible royalties before printing. • Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one. • For any reuse or distribution, you must make clear to others the license terms of this work. • Any of these conditions can be waived if you get permission from the copyright holder. Your fair use and other rights are in no way affected by the above.
    [Show full text]
  • Dr. Ralf S. Engelschall Architecture Fundamentals AF Goal Focus 00.0
    Dr. Ralf S. Engelschall Architecture Fundamentals AF Goal Focus 00.0 Step 1: Your Insight (Believe) Concepts Methods Technologies ReproductionUnauthorized Prohibited. Ralf All Rights S. Engelschall <http://engelschall.com>, Reserved. © 2018-2019 Dr. 1.0.2 (2019-06-28), Copyright Version Graphical Illustration: Ralf S. Engelschall Dr. 2010-2019 by 1.0.2 (2019-06-28), Authored Version Intellectual Content: Concepts have a larger life-time than particular technologies and products. know scope of Step 2: Our Preparation this training Concepts have to be assembled in a concise subsequent understand München (TUM) Universität Science lecture contexts in Computer only. reproduction for Technische Licensed to form to be handy in practice. task of trainee in practice apply AN ARCHITECT Step 3: Your Application 1. THINKING LIKE 1. 2. BEING GOOD AT Concepts can be applied in practice both CONCEPTUALIZATION proactive/constructive and reactive/analytical. Scope Type Focus Content Computer Literature Industry Theory knows about knows about Science more things more things Diagrams Statements (written) Abstraction Generalization Software (Conceptual) Trainer Architecture Rationales Model Theory Practice (verbal) Engineering Fundamentals Software & Examples Trainer Systems (verbal) Practice Architecture the most Instantiation relevant concepts Specialization Software Engineering Disciplines AF ANALYTICAL CONSTRUCTIVE STEERING 01.1 REQ Requirements ENV Environment RES Resources Intellectual Content: Version 1.0.7 (2010-07-21), Authored 2006-2010 by Dr. Ralf S. Engelschall, inspired by Rational Unied Process (RUP) Rational by Ralf inspired Unied Process S. Engelschall, Dr. 2006-2010 by 1.0.7 (2010-07-21), Authored Version Intellectual Content: Graphical Illustration: Version 1.0.9 (2019-06-28), Copyright © 2007-2019 Dr.
    [Show full text]
  • Installing Applications in Freebsd Lctseng (2019-2020, CC BY-SA) ? (1996-2018)
    Installing Applications in FreeBSD lctseng (2019-2020, CC BY-SA) ? (1996-2018) 1 Handbook and Manual pages ● Complete guide and be found at ○ https://www.freebsd.org/doc/handbook/ports.html ○ https://www.freebsd.org/doc/zh_TW/books/handbook/ports.html ○ ports(7) ○ pkg(7), pkg(8) 2 Before we start ● Permission issue ○ root: the superuser ■ In Unix-like system, root is the conventional name of the user who has all rights or permissions (to all files and programs) in all modes (single- or multi-user) ● Don't execute all commands as root directly ○ It's DANGEROUS ● However sometimes you still need to be root to do something ○ Install software ○ Manage system settings ○ Create/modify/delete users 3 Before we start ● Become root ○ Console login with root $ whoami ○ By default, you cannot login as root via SSH lctseng $ su - ● Change current user Password: ○ Don't need to login with console $ whoami ○ Use command "su -", and then type root's password ■ Only user in "wheel" group can use "su -" root ○ To see which credit you are using, use "whoami" 4 Before we start ● As mentioned before, don't run as root directly ● Can we execute with root's credential only for some specific commands? ○ Like 'Run as administrator' in Windows ○ Is there similar commands in Unix-like system/FreeBSD? 5 Before we start ● Run commands with other user's permission ● "sudo" command ○ Only simplest explanation here for basic usage ○ "sudo" syntax and other details will be explained in later chapters ○ Here only tell you how to simply enable 'sudo' ● How to enable sudo?
    [Show full text]
  • Mac OS X Intro for UNIX Users
    Mac OS X An Introduction for UNIX Users Leon Towns-von Stauber, Occam's Razor Seattle BSD Users Group, October 2004 http://www.occam.com/osx/ X Contents Opening Remarks.............................3 Where Did Mac OS X Come From?.....5 What is Mac OS X?..........................13 A New Kind of UNIX........................25 A Different Kind of UNIX.................28 Why Use Mac OS X?.........................60 Resources.......................................63 Closing Remarks.............................67 X Opening Remarks 3 This is a technical introduction to Mac OS X, mainly targeted to experienced UNIX users for whom OS X is at least relatively new Some emphasis on comparisons with FreeBSD I'm assuming basic familiarity with operating system design Where I'm coming from: UNIX user and some-time admin since 1990 Full-time UNIX admin since 1995 NeXTstep user and admin since 1991 This presentation covers primarily Mac OS X 10.3.5 (Darwin 7.5) X Legal Notices 4 This presentation Copyright © 2003-2004 Leon Towns-von Stauber. All rights reserved. Trademark notices Apple®, Mac®, Macintosh®, Mac OS®, Aqua®, Finder™, Quartz™, Cocoa®, Carbon®, AppleScript®, Rendezvous™, Panther™, and other terms are trademarks of Apple Computer. See <http:// www.apple.com/legal/appletmlist.html>. NeXT®, NeXTstep®, OpenStep®, and NetInfo® are trademarks of NeXT Software. See <http://www.apple.com/legal/nexttmlist.html>. PowerPC™ is a trademark of International Business Machines. Java™ is a trademark of Sun Microsystems. Other trademarks are the property of their
    [Show full text]
  • Webroot Secureanywhere® Business – DNS Protection Apache License 2.0 • Aws-Sdk-Net Copyright © Amazon.Com, Inc. Apache
    Webroot SecureAnywhere® Business – DNS Protection Apache License 2.0 • aws-sdk-net Copyright © Amazon.com, Inc. Apache License Version 2.0, January 2004 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. “License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. “Licensor” shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. “Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. “You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License. “Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. “Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. “Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
    [Show full text]
  • MAC OSX Tips
    Table of Contents MAC OSX tips keys linux-like environment and FINK MacPorts tips Build from source VS use binaries Useful commands MAC OSX tips Overview Some tips and hints on MacOSX usage: tame your keyboard and go ahead with compilation. edit 1414069126 [MAC OSX tips] section 1-168 1/8 documentation:tools:macosx_tips Edit keys quick copy and paste with CMD touch + c and + v key pipe | : alt + Maj + l tilde ~: alt +n square brackets [ or ]: alt + Maj + ( or ) antislash \:alt + maj + : edit 1414069126 [keys] section 169-383 documentation:tools:macosx_tips Edit linux-like environment and FINK 2/8 What is Fink? Fink is a distribution of Unix Open Source software for Mac OS X and Darwin. It brings a wide range of free command-line and graphical software developed for Linux and similar operating systems to your Mac. Quick Start Download the installer disk image: Fink 0.9.0 Binary Installer Double-click ?Fink-0.9.0-XYZ-Installer.dmg? to mount the disk image, then double-click the ?Fink 0.9.0 XYZ Installer.pkg? package inside. Follow the instructions on screen. At the end of the installation, the pathsetup utility will be launched. You will be asked for permission before your shell's configuration files are edited. When the utility has finished, you are set to go! Using the fink tool The fink tool uses several suffix commands to work on packages from the source distribution. Some of them need at least one package name, but can handle several package names at once. You can specify just the package name (e.g.
    [Show full text]