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.
- 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.
- apt-get
- pacman
- yay
- dnf
- zypper
- xbps-install
- eopkg
- 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)
-
dialogpackage (for creating the UI)Install
dialogif you haven't already:sudo apt-get install dialog
Clone this repository and make aptui executable:
git clone https://github.com/hitofuki/aptui.git
cd aptui
chmod +x aptui.shThe 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)
Run aptui with the following command:
./aptui.shUse the menu to navigate through the following options:
- Install a package
- Remove a package
- List installed packages
- Install from Git
- Search for a package
- Exit
- The script creates a temporary directory to clone the git repo into.
- Checks if
install.shormakefileexist. - Runs either
install.shormakefileand builds the package. - Cleans everything up.
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:
-
Open your terminal
-
Open your
.bashrcor.bash_profile(both if your shell is bash) file in a text editor. This depends on your system:nano ~/.bashrcor
nano ~/.bash_profile -
To add the alias add this line at the bottom of the file:
alias aptui='/path/to/aptui.sh'
-
Save and exit.
-
To confirm the changes, run:
source ~/.bashrc
or
source ~/.bash_profile
This project is licensed under the MIT License.
Feel free to fork the repository and submit pull requests. Contributions are welcome! (my code sucks, please help me)