Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

plugin add ./nu_plugin_dpkg/target/debug/nu_plugin_dpkgtable

About

dpkg plugin for Nushell

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages