GithubHelp home page GithubHelp logo

lordgriffo / tinypkg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slackjeff/tinypkg

0.0 0.0 0.0 52 KB

Tiny and fast package manager, written in POSIX Shell

License: GNU General Public License v2.0

Shell 100.00%

tinypkg's Introduction

Tinypkg

A low-level package manager, similar to 'dpkg', 'rpm' and 'pkgtool'. Created for Linux distributions, written in Shell POSIX. With tinypkg you can: create, install, list and remove packages in a universal way!

Installation

Use tinypkg only with root!

chmod +x tinypkg && cp tinypkg /usr/sbin

Options

  • -h: Displays help.
  • -c: Creates a package.
  • -i: Installs packages.
  • -r: Removes packages.
  • -l: Lists installed packages.
  • --fakeroot DIR: Changes installation / from another directory. Used with -i

USAGE Examples

Creating a package

'NOTE! The package name must be named as: <name>-<version>.tar If spaces are needed use underscores. e.g.: Software_editor-01.0424.tar'

tinypkg -c leafpad-0.8.17.tar

Installing packages

# Using absolute path
tinypkg -i /home/slackjeff/bin/leafpad-0.18.17.tar

# Using relative path
tinypkg -i leafpad-0.18.17.tar

# Installing multiple packages
tinypkg -i /tmp/*.tar

Removing packages

'Note! If there are multiple packages with the same name (e.g.: leafpad-version or leafpad-bin-version). It just shows you and does nothing!'

tinypkg -r leafpad

If you are willing to contribute:

Make sure you follow these guidelines:

  • Keep the code below 250 lines (Comments not included)
  • Use only the standard POSIX Shell
  • Do not include unnecessary things!

Roadmap

  • Create option to update available packages.
  • Make it even faster.
  • Remove dirt in the code. (replacing external tools)
  • Create a post installation script
  • MD5 hash of each package when creating. And check when installing. (security)

tinypkg's People

Contributors

slackjeff avatar ascenio avatar chrystianrubio avatar walber-vaz 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.