Git Product home page Git Product logo

pkg's Introduction

Pkg

Pkgsrc, made simpler

Commands

pkg installed or pkg ind

Lists all packages installed.

pkg available or pkg av

Shows all packages in all categories.

pkg install or pkg in package

When used, pkg will attempt to install the compiled package from /usr/pkgsrc/packages.

If one isn't found, the online repository will searched and the package will be downloaded and installed.

If a compiled package isn't available, the package's source code will be downloaded, compiled, and installed.

pkg uninstall or pkg un package

Uninstalls the package specified.

pkg update or pkg up package

Updates the package specified.

pkg search or pkg s package

Finds the full names of packages matching the package name specified.

pkg about or pkg a package

Describes the package specified.

pkg help or pkg h

Shows a condensed listing of commands.

Requires

License

Copyright (c) 2013, pikpik

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

pkg's People

Contributors

pikpik avatar

Watchers

 avatar

pkg's Issues

Tab-completion

 pikpik: it'd be neat if pkg up per[tab] finished typing perl5 for me :P

 you could do that with a zsh completion script

 maybe pkg could also somehow tell zsh about it, not sure

 beng-nl & cphuntington97: Yes, I could add tab-completion. But I think it wouldn't make sense unless running Pkg without commands opened an interactive mode.

 Would that be nice though?

 # pkg
 pkg> install web-[tab]
 pkg> install web-server
 ...?

 beng-nl: Yeah, ZSH is nice. But I'd like Pkg to work regardless of the user's shell.

 my only experience with interactive modes is entering them inadvertently and then frantically CMD-C, q, exit, quit, trying to get out of it lol

cphuntington97: The basic problem with Pkg and tab-completion: it's not running when you're typing.

 (Yes, ZSH integration could solve that, but only for ZSH.)

Searching in "installed" and "available" lists

Perhaps pkg ind [part of package name] could work like pkg ind | grep [part of package name].

Perhaps pkg av could work the same way with the grepping stuff, or list categories or something. Otherwise you get blasted with a huge list of apps.

Rewriting and testing in different (programming) languages

Well, if you'd like tab-completion or even faster speeds, just let me know. :)

(Both entail the same change: testing rewrites in Go and Lua.)

(I can try Python and Perl too, but I think Go and Lua have lower startup costs and smaller footprints.)

(I don't know enough about Ruby, but it could be a good choice. I'm just not sure.)

Also think about Node.js. But MINIX and NetBSD don't support it, so I'd probably have to port it again or use Pkgsrc-WIP. I'm not sure it would be worth it to require users to do the work or to automate it myself. Although, it might be useful to get it working and available officially on NetBSD and MINIX.

Showing available package updates

Updates could be shown in information about installed packages, or I could have a separate command for it. The first way, "available," "installed," or both could search for each installed package and show the installed version as well as the newer available version in Pkgsrc. The other way, an "updates" (shortened as "upds" or "ups") could show the new and old version information.

Either way, I'd like to use color-coding for packages that need to be updated. I think packages that haven't "expired" could be fine without any coloring.

Fixing "update" in Pkg or Pkgsrc

Since Pkgsrc's "update" command, which could update a package and its dependencies, is still sort of broken, I'm using its "replace" command which only updates a single package at a time. I'll look for a way of either fixing Pkgsrc or making Pkg update dependencies too.

Interface ideas

These are a few command ideas, including an idea of a different program name.

package

available [package]

installed [package]

install [package]

remove [package]

requirements [package]

dependents [package]

orphans [package]

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.