README.md
Package Manager Script
This script is a wrapper for various package managers, providing a unified interface for package management across different Linux distributions and macOS.
Table of Contents
Usage
To use the script, run it from the command line with the following options:
./pkg i, install <package> # Install a package
./pkg u, update <package> # Update a package
./pkg up, upgrade # Upgrade all packages
./pkg r, remove <package> # Remove a package
./pkg p, peek <package> # Peek at package details
./pkg l, list # List all installed packages
./pkg s, search <package> # Search for a package
./pkg c, clean # Clean the package cache
./pkg h, history # Show package management history
./pkg -h, --help # Display help information
./pkg -v, --version # Display version information
./pkg config # Edit configuration file
Features
- Install Packages: Install a package using the default or preferred package manager.
- Update Packages: Update a specific package.
- Upgrade All Packages: Upgrade all installed packages.
- Remove Packages: Remove a specific package.
- Peek at Package Details: Display detailed information about a package.
- List Installed Packages: List all installed packages.
- Search for Packages: Search for a package in the repositories.
- Clean Package Cache: Clean the package cache.
- Show Package Management History: Display the history of package management actions.
- Edit Configuration: Edit the configuration file to set preferences.
Installation
Clone the repository:
git clone https://github.com/chocoOnEstrogen/dotfiles cd dotfiles/scripts/pkg
Make the script executable:
chmod +x pkg
Run the script:
./pkg
Code Reference
The main script is located in the following file: