• Stars
    star
    268
  • Rank 148,132 (Top 3 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Interactive package manager and resource monitor designed for the GNU/Linux.

pkgtop is an interactive package manager & resource monitor tool designed for the GNU/Linux.

Release AUR Builds Go Report Card License

pkgtop

Package management (install/upgrade/remove etc.) can be a problem if the user is not familiar with the operating system or the required command for that operation. So pkgtop tries to solve this problem with an easy-to-use terminal interface and shortcut keys. Briefly, pkgtop aims to provide a terminal dashboard for managing packages on GNU/Linux systems. Using the terminal dashboard, it's possible to list installed packages by size (or alphabetically with -a argument), show information about the package, install/upgrade/remove packages and search package. Also, there are other handy shortcuts for easing the package management process which mentioned in the usage information.

In addition to the package management features, there's a section at the top of the dashboard that shows disk usages and general system information. For example, this section can be used as a resource monitor and help decide whether the system should be cleaned or not.
Another useful section is the 'executed' or 'confirm to execute' command list which is placed below the installed packages. Thus, the user can see which command executed recently or confirm & execute the selected command. (The commands that need confirmation to execute exist in the list with a prefix like "[y]".) After scrolling the commands list with "c" key for selecting the command to execute, press "y" for executing it. pkgtop will execute the command and restart the terminal dashboard afterwards.

pkgtop uses the advantage of mainly used package managers being installed on most of the preferred GNU/Linux distributions. As an example, it works on a Manjaro based system as it works on Arch Linux systems since both distributions use the Pacman package manager. You can use pkgtop if you have one of the package managers listed below.

  • pacman
  • apt
  • zypp
  • dnf
  • xbps
  • portage
  • nix
  • guix

If you are happy user of Arch-based distributive, you can use pkgtop with pacman wrappers and AUR supporters, such as paru. See this section for details.

If the distribution is not defined in the source but has the required package manager for running the pkgtop, -d argument can be used for specifying a distribution that has the same package manager. Current defined and supported distributions are arch, manjaro, debian, ubuntu, mint, suse, fedora, centos, redhat, void, gentoo, nixos, guix.

Installation

Dependencies

AUR

git clone https://aur.archlinux.org/pkgtop.git && cd pkgtop/
makepkg --install

Manual Installation

go build cmd/pkgtop.go
sudo mv pkgtop /usr/local/bin/

Preferably, go install command can be used.

Command-Line Arguments

-h, show help message
-d, select linux distribution
-c, main color of the dashboard (default: blue)
   [red, green, yellow, blue, magenta, cyan, white]
-pacman, pacman backend for arch-based distributions (default: pacman)
-a, sort packages alphabetically
-r, reverse the package list
-v, print version

AUR Support

You can specify which pacman wrapper you should to use by launch pkgtop with -pacman option. For example, for paru support:

$ pkgtop -pacman paru

If you don't want to provide the -pacman option every time on app launch, you can create bash alias on ~/.bashrc file.

~/.bashrc

alias pkgtop='pkgtop -pacman paru'

After that you can simply launch pkgtop command and get full AUR support, provided by paru wrapper.

Usage

Key Action
? help
enter, space, tab show package information
i install package
u/ctrl-u upgrade package/with input
r/ctrl-r remove package/with input
s,/ search package
g go to package (index)
y confirm and execute the selected command
p copy selected package
e copy selected command
c scroll executed commands list
j/k, down/up scroll down/up (packages)
ctrl-j/ctrl-k scroll to bottom/top (packages)
l/h, right/left scroll down/up (disk usage)
backspace go back
q, esc, ctrl-c, ctrl-d exit

List Installed Packages & Show Package Information

List Packages & Show Information

pressed keys: down, enter, backspace

Search, Go-to Package

Search, Go-to Package

pressed keys: s, (type), enter, g, (type), enter

Install, Upgrade, Remove Package

Install, Upgrade, Remove Package

pressed keys:
i, (type), enter, y -> install
ctrl-u, (type), enter, y -> upgrade
ctrl-r, (type), enter, y -> remove

Show Disk Usage Information

Show Disk Usage Information

pressed keys: right, left

Confirm Command to Execute

Confirm Command to Execute

pressed keys: c, y

Show Help

Show Help

pressed key: ?

Docker

Build Docker Image

docker build -f docker/Dockerfile -t pkgtop-docker .

Run the Container

docker run pkgtop-docker

Start a shell in the Container

docker run -it pkgtop-docker /bin/bash

Screenshots

Fedora Screenshot

Manjaro-Mint Screenshot

Debian-Ubuntu Screenshot

Todo(s)

  • Add 'paste' feature

Sponsor

If you would like to support the development of pkgtop and my other open source projects, consider supporting me on GitHub Sponsors or becoming a patron.

License

GNU General Public License (v3)

Copyright

Copyright © 2019-2023, Orhun Parmaksız

More Repositories

1

git-cliff

A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️
Rust
5,800
star
2

kmon

Linux Kernel Manager and Activity Monitor 🐧💻
Rust
1,911
star
3

systeroid

A more powerful alternative to sysctl(8) with a terminal user interface 🐧
Rust
997
star
4

gpg-tui

Manage your GnuPG keys with ease! 🔐
Rust
991
star
5

halp

A CLI tool to get help with CLI tools 🐙
Rust
597
star
6

menyoki

Screen{shot,cast} and perform ImageOps on the command line 🌱 🏞️
Rust
489
star
7

rustypaste

A minimal file upload/pastebin service.
Rust
460
star
8

linuxwave

Generate music from the entropy of Linux 🐧🎵
Zig
399
star
9

runst

A dead simple notification daemon 🦡
Rust
234
star
10

zps

A small utility for listing and reaping zombie processes on GNU/Linux.
C
153
star
11

CoolModFiles

A web player that plays some cool MOD files randomly 🎶
JavaScript
122
star
12

kermit

A VTE-based, simple and froggy terminal emulator 🐸
C
114
star
13

rust-tui-template

A template for bootstrapping a Rust TUI application with tui-rs & crossterm
Rust
77
star
14

dotfiles

Orhun's Arch Linux configuration files and scripts 🏠
Shell
70
star
15

godsays

Rust port of the Terry Davis' (RIP) "god says" program
Rust
69
star
16

rtl_map

FFT-based visualizer for RTL-SDR devices. (RTL2832/DVB-T)
C
67
star
17

battleship-rs

Battleship game implemented in Rust
Rust
65
star
18

git-cliff-action

GitHub action to generate a changelog based on the Git history
Shell
65
star
19

k3pler

Android network connection blocker and packet analyzer built on top of local HTTP proxy.
Java
48
star
20

orhun

My GitHub profile README.md ⭐:octocat:
41
star
21

rustypaste-cli

A CLI tool for rustypaste
Rust
36
star
22

ApkServInject

Tool for injecting (smali) services to APK files
Java
30
star
23

cargo-nocode

Cargo subcommand to easily bootstrap nocode applications. Write nothing; deploy nowhere.
Rust
29
star
24

god

Linux utility for simplifying the Git usage.
Go
25
star
25

PSAUX

Android task manager and automated background service killer.
Java
20
star
26

alpkg

Set up Alpine Linux packaging environment with a breeze! 🏔
Shell
18
star
27

packaging-rust-for-npm

https://blog.orhun.dev/packaging-rust-for-npm/
JavaScript
17
star
28

Picasso

PIC16F877A based 5V/20MHz development board and PIC programmer
C
15
star
29

PKGBUILDs

Arch Linux packages that I maintain 🔧
Shell
13
star
30

personal-blog

The source of my blog ✍🏼
SCSS
13
star
31

dialogflowbot

Google's Dialogflow implementation on Android with additional features.
Java
11
star
32

i3-workspace-brightness

Utility to auto-adjust the brightness of i3wm workspaces
Rust
11
star
33

Black-Waves

A wavy dark theme for VSCode
10
star
34

HydropotX

Automated and Self-contained Hydroponics System 🌱
Kotlin
9
star
35

advent-of-code

My Advent of Code solutions 🐢
Rust
8
star
36

Last-Commit

A VSCode extension that focuses on the last git commit
JavaScript
7
star
37

zig-http-benchmarks

Benchmarking Zig HTTP client against Rust, Go, Python and curl
Zig
6
star
38

binsider

Analyze ELF binaries like a boss (WIP)
Rust
4
star
39

orhun.github.io

Personal website
HTML
4
star
40

base16-kermit

Base16 for kermit
Mustache
3
star
41

godsings

https://melody.godsays.xyz
Python
3
star
42

parseit

A simple text file parsing library powered by regex and glob patterns
Rust
3
star
43

typewriter

Turn your keyboard into a typewriter (WIP)
Rust
2
star
44

firebox-auth-cracker

A CLI tool to brute force the authentication signature of WatchGuard's Firebox
Rust
2
star
45

playfair-rs

Playfair cipher implemented in Rust
Rust
2
star
46

rust-arch-lto

Rust + ABS + LTO = 🤯 (PoC)
Shell
1
star
47

abstractapi-rs

Rust API bindings for the Abstract HTTP API
Rust
1
star
48

rust-tui-example

A very simple TUI program to demonstrate on Rust Munich Meetup #8
Rust
1
star
49

device_query

A simple library to query mouse and keyboard inputs without a window. Will work in Windows, Linux, and macOS.
Rust
1
star
50

devtools

Tools for Arch Linux package maintainers
Shell
1
star
51

ytpls

[experimental] YouTube Playlist Synchronizer backed by yt-dl & git
Rust
1
star
52

unimap

Scan only once by IP address and reduce scan times with Nmap for large amounts of data.
Rust
1
star