GithubHelp home page GithubHelp logo

tani / pkgbrew Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 3.0 2.11 MB

non-root package manager based on pkgsrc

License: BSD 2-Clause "Simplified" License

Makefile 1.77% Perl 1.71% Shell 93.12% Awk 0.74% Smarty 2.66%
pkgsrc packaging golang

pkgbrew's Introduction

pkgbrew

non-root package manager

Usage

Install a package

$ pkgbrew install editors/emacs-nox11

Uninstall a package

$ pkgbrew deinstall editors/emacs-nox11

Upgrade a package

$ pkgbrew replace editors/emacs-nox11

Show build parameters

$ pkgbrew show-options editors/emacs24

Search a package

$ pkgbrew search emacs

Manage user repository (tap/untap)

$ pkgbrew tap <username>/<repository> # Github
$ pkgbrew untap <username>/<repository>
$ pkgbrew update # for all repository

For example,

$ pkgbrew tap NetBSD/pkgsrc-wip

Show Usage

$ pkgbrew help

Installation

$ export MAKE_JOBS=4 # Optional
$ wget -O- https://raw.githubusercontent.com/tani/pkgbrew/master/bin/installer | /bin/sh
$ echo 'export PATH=$HOME/.pkgbrew/bin:$PATH' >> ~/.bashrc
$ echo 'export MANPATH=$HOME/.pkgbrew/man:$MANPATH' >> ~/.bashrc

Supported platforms

  • NetBSD
  • Solaris
  • Linux (test environment)
  • Darwin(Mac OS X) (Travis CI)
  • FreeBSD

(see also pkgsrc.org)

Software requirements

  • wget or curl
  • gcc (and libstdc++)
  • libncurses-devel
  • zlib and zlib-devel

This software is written only in /bin/sh and awk, which means that POSIX compatibe.

Debian/Ubuntu

$ sudo apt-get install build-essential

Mac OSX

Set the CC variable in the environment before the script the starts. (export CC=clang)

Author

TANIGUCHI Masaya

Copyright

Copyright(c) 2016-2020 TANIGUCHI Masaya

License

BSD License (2 clause)

pkgbrew's People

Contributors

tani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pkgbrew's Issues

nawk: No such file or directory

Hey! I want to say : amazing code! Great job!

So after installation I got:

$ bmake
HOME/.pkgbrew/src/mk/pkgformat/pkg/list-dependencies: line 46: HOME/.pkgbrew/bin/nawk: No such file or directory
===> Skipping vulnerability checks.
WARNING: No HOME/.pkgbrew/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `HOME/.pkgbrew/sbin/pkg_admin -K HOME/.pkgbrew/var/db/pkg fetch-pkg-vulnerabilities'.
===> Installing dependencies for nawk-20121220nb1
HOME/.pkgbrew/src/mk/pkgformat/pkg/list-dependencies: line 46: HOME/.pkgbrew/bin/nawk: No such file or directory
*** Error code 1

Stop.
bmake: stopped in HOME/.pkgbrew/src/lang/nawk

and exactly the same error when running pkgbrew install.

I was able to track missing nawk, it comes from this from mk.conf.tpl. What it's doing there? Removing it or replacing with /usr/bin/awk solves the issue of missing nawk.

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.