Skip to content
/ plpm Public

Private Located Package Manager - This is a tool with which you can create and install some packages locally.

License

Notifications You must be signed in to change notification settings

caphosra/plpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLPM - Private Located Package Manager

Build Status GitHub release (latest by date including pre-releases) GitHub

This is a tool with which you can create and install some packages locally.

Description

Do you have any experiences that you wanna test your library or install something temporary? On that time, you may have to put some libraries to the special directory such as "System32", "usr/lib". And you face to the problem - "Are they detachable?"
With this tool, you can create "package"(contains libraries) and share it only in your computer. The "package" shared can be installed whenever you want and it is easy to uninstall.
You wanna know more information? Watch Usage.

Installation

Choose one from followings.

Use GitHub release (Recommended)

  1. Jump to Release page
  2. Download package
  3. Extract it wherever you wanna install
  4. Add the path of the directory where you installed it to PATH values(optional)
  5. Finally you can use plpm. Hooray!

Build from source code (Hard way)

  1. Clone this repo
    git clone https://github.com/capra314cabra/plpm.git
    
  2. Run dotnet command on "plpmcui" directory
    cd plpm/scripts/plpmcui
    dotnet publish --runtime <RID>
    
    Do you know what is RID? See also Microsoft RID catalog
  3. You will see a binaries in bin directory
  4. After this, it is the same way to GitHub release section

Usage

Create a package

plpm_create

When you wanna create a new package, you need to create a "PLPM Project File" first. It is easy to create.
The PLPM project file is a kind of JSON and it is formatted as following.

{
    "Name": "TestPackage",
    "Description": "Description...",
    "ContentsFiles": [
        "helloworld.txt",
        "subfolder/capra.dll"
    ]
}

⚠️ The child of "ContentsFiles" should be a RELATIVE path.
⚠️ "PLPM Project File" should be named as "plpmproj.json".

The PLPM project file works as a blueprint of a package.

Created one? Go to the next step!
Second, run a commmand in the directory plpmproj.json exists.

plpm create

This command ran successfully means PLPM created a package successfully! If you're worried about it, you can check the list of packages by following command.

plpm search

Install the package

plpm_install

Installing a package is easy. Move to where you wanna install package and type following command:

plpm install [package name]

Only this.
After running this command, you will see "plpm.json". It contains the list of packages installed there.

Uninstall the package

plpm_uninstall

Uninstalling a package is easy too. Move to where you wanna install package and type following command:

plpm uninstall [package name]

Only this.

Contribution

We always welcomes you to join us.

License

This project is under MIT License.

Authors

capra314cabra