Skip to content

7wotw/aptui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

aptui

aptui is a simple command-line tool for installing packages. Just in case you're lazy to type sudo apt-get install <package>. Don't ask why I made this. I don't know.

Features

  • Support for most Linux distributions!
  • Install packages: Sooo revolutionary!
  • Remove packages: Even more revolutionary!
  • List installed packages: You never knew you needed this! (you don't)
  • Install from git: Automatically clone and make a git repo. Pretty cool!
  • Search for packages: Find packages by searching with keywords.
  • Very similar UI to Network Manager TUI.

Supported package managers and distros

Package managers:

  • apt-get
  • pacman
  • yay
  • dnf
  • zypper
  • xbps-install
  • eopkg

Distros

  • Debian/Ubuntu (apt)
  • Arch Linux (pacman, yay with AUR)
  • Fedora (dnf)
  • openSUSE (zypper)
  • Void Linux (xbps-install)
  • Solus (eopkg) (I'll add more if requested)

Requirements

  • dialog package (for creating the UI)

    Install dialog if you haven't already:

    sudo apt-get install dialog

Installation

Clone this repository and make aptui executable:

git clone https://github.com/hitofuki/aptui.git
cd aptui
chmod +x aptui.sh

Config

The configuration file is generated after selecting a distribution. It's located in ~/.config/aptui and contains only:

PACKAGE_MANAGER=apt-get

(or your selected package manager)

Usage

Run aptui with the following command:

./aptui.sh

Use the menu to navigate through the following options:

  1. Install a package
  2. Remove a package
  3. List installed packages
  4. Install from Git
  5. Search for a package
  6. Exit

Some cool things

The git cloning works like this:

  1. The script creates a temporary directory to clone the git repo into.
  2. Checks if install.sh or makefile exist.
  3. Runs either install.sh or makefile and builds the package.
  4. Cleans everything up.

Alias (guide for bash users)

If you want, instead of going to the directory where the script is located you can create an alias so you can execute aptui anywhere you want. Here's how to do this:

  1. Open your terminal

  2. Open your .bashrc or .bash_profile (both if your shell is bash) file in a text editor. This depends on your system:

    nano ~/.bashrc

    or

    nano ~/.bash_profile
  3. To add the alias add this line at the bottom of the file:

    alias aptui='/path/to/aptui.sh'
  4. Save and exit.

  5. To confirm the changes, run:

    source ~/.bashrc

    or

    source ~/.bash_profile

License

This project is licensed under the MIT License.

Contributions

Feel free to fork the repository and submit pull requests. Contributions are welcome! (my code sucks, please help me)

About

APT, but with a UI

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages