Giter Club home page Giter Club logo

svr4pkg's Introduction

svr4pkg

Basic perl implementation of solaris native svr4 packages tools.

Description

Svr4pkg is a tool that emulates the basic behaviour of the set of solaris tools used to manipulate svr4 packages (pkgadd, pkgrm, pkginfo...).

It aimed at being used on illumos-based operating systems that do not provide the svr4 package tools. svr4pkg will allow to easily nstall on these systems legacy svr4 packages or even a whole existing svr4 packages stack (like http://www.opencsw.org).

Warnings

Svr4pkg must not be used on a system where pkgadd, pkgrm are available. svr4pkg is not guaranteed to be fully compatible with solaris native tools so you could mess badly with the package database if you use both tools on the same system.

Limitations

svr4pkg doesn't aim at being fully compatible with native tools and implement all of its features. It only implement the required basic features allowing to install most standard packages.

That being said, feel free to open a bug if you encounter an issue with a package: https://github.com/yannrouillard/svr4pkg/issues

Installation and usage

To install svr4pkg, just download the svr4pkg script and install it anywhere in your path. You can then use it to:

  • install a package:

      svr4pkg add -d /path/to/package.pkg
    
  • remove a package:

      svr4pkg rm svr4_package_name
    
  • get the list of installed packages:

      svr4pkg info
    

You can also create symlink from native svr4 packages tools to svr4pkg, svr4pkg will behave like the original tools when it detects it is called with the same name. For example:

    ln -s svr4pkg pkgadd
    pkgadd -d /path/to/package.pkg

Installation for opencsw

svr4pkg nicely plays with the opencsw distribution available at http://www.opencsw.org. You can use svr4pkg to install the whole opencsw stack on smartos for instance. Just the follow the steps below:

  • To bootstrap the installation, first install the svr4pkg script alone using the following commands:

    mkdir -p /opt/csw/bin
    curl -L -o /opt/csw/bin/svr4pkg https://github.com/yannrouillard/svr4pkg/releases/download/v0.5/svr4pkg
    chmod +x /opt/csw/bin/svr4pkg
    
  • Then use the script itself to install the real svr4pkg package. This one will create symlinks to the native tools name (pkgadd, pkgrm, pkginfo...) that are required to be used as a drop-in replacement and to work with pkgutil.

    /opt/csw/bin/svr4pkg add -n -d https://github.com/yannrouillard/svr4pkg/releases/download/v0.5/svr4pkg.pkg
    
  • You can then the follow the standard opencsw manual to install the opencsw distribution: http://www.opencsw.org/manual/for-administrators/getting-started.html

    The svr4pkg package is part of the opencsw distribution so it will be easily updated with pkgutil.

svr4pkg's People

Contributors

yannrouillard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.