category command
This is similar to the command aptitude search '?section(shells)' http://askubuntu.com/a/473511
This commit is contained in:
parent
7bee9222bc
commit
83cac7847e
15
apt-cyg
15
apt-cyg
|
@ -47,6 +47,7 @@ function usage {
|
|||
AKA show reverse dependencies
|
||||
list List packages matching given pattern. If no pattern is given,
|
||||
list all installed packages.
|
||||
category List packages matching given category
|
||||
listfiles List files owned by packages
|
||||
search Search for a filename from installed packages
|
||||
searchall Search for a filename from all available packages
|
||||
|
@ -139,6 +140,19 @@ function apt-update {
|
|||
fi
|
||||
}
|
||||
|
||||
function apt-category {
|
||||
find-workspace
|
||||
awk '
|
||||
$1 == "@" {
|
||||
pck = $2
|
||||
}
|
||||
$1 == "category:" && $0 ~ query {
|
||||
$1 = ""
|
||||
printf "%-25s%s\n", pck, $0
|
||||
}
|
||||
' query="$pks" setup.ini
|
||||
}
|
||||
|
||||
function apt-list {
|
||||
find-workspace
|
||||
local sbq
|
||||
|
@ -553,6 +567,7 @@ do
|
|||
| depends \
|
||||
| rdepends \
|
||||
| list \
|
||||
| category \
|
||||
| listfiles \
|
||||
| search \
|
||||
| searchall)
|
||||
|
|
Loading…
Reference in New Issue