Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdenapo/nu_plugin_dpkgtable
dpkg plugin for Nushell
https://github.com/pdenapo/nu_plugin_dpkgtable
Last synced: 3 months ago
JSON representation
dpkg plugin for Nushell
- Host: GitHub
- URL: https://github.com/pdenapo/nu_plugin_dpkgtable
- Owner: pdenapo
- License: mit
- Created: 2024-02-04T19:40:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T11:38:18.000Z (11 months ago)
- Last Synced: 2024-05-21T16:11:50.256Z (8 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - nu_plugin_dpktable
README
# dpkgtable plugin for Nu shell
dpkg is the main low-level tool for managing packages in a GNU/Linux Debian system.
This a plugin for nushell that captures the output of dpkg --list (list of known packages) into a table.
~> dpkgtable | where name == "git"
╭───┬────────┬──────┬──────────────┬──────────────┬─────────────────────────────────────────────────────╮
│ # │ status │ name │ version │ architecture │ description │
├───┼────────┼──────┼──────────────┼──────────────┼─────────────────────────────────────────────────────┤
│ 0 │ ii │ git │ 1:2.39.2-1.1 │ amd64 │ fast, scalable, distributed revision control system │
╰───┴────────┴──────┴──────────────┴──────────────┴─────────────────────────────────────────────────────╯You can capture the oputput something like
let packages = ( dpkgtable )
and then you can do something like
$packages | where name =~ git
or
dpkg --remove $packages.5.name
to remove the package #5 in the list (if running as root).
## Instalation
After building the plug-in (with cargo build), register it with nushell (from the nushell prompt) with
the register command.For instance:
register ./nu_plugin_dpkg/target/debug/nu_plugin_dpkgtable