Skip to content

Commit 25aa942

Browse files
committed
xbps 'orphans' command
1 parent 34877bd commit 25aa942

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/upm/tool.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ class Tool
2222
"install" => "install a package",
2323
"remove/uninstall" => "remove a package",
2424
"search" => "search packages",
25+
"update/sync" => "retrieve the latest package list or manifest",
26+
"upgrade" => "update package list and install updates",
2527
"search-sources" => "search package source (for use with 'build' command)",
26-
"build" => "build a package from source and install it",
2728
"list" => "list installed packages (or search their names if extra arguments are supplied)",
28-
"selection/manual" => "list manually installed packages", # this should probably be a `list` option ("upm list --manually-added" or smth (would be nice: rewrite in go and use ipfs' arg parsing library))
2929
"files" => "list files in a package",
30+
"info/show" => "show metadata about a package",
3031
"rdeps/depends" => "reverse dependencies (which packages depend on this package?)",
3132
"locate" => "search contents of packages (local or remote)",
32-
"info/show" => "show metadata about a package",
33-
"update/sync" => "retrieve the latest package list or manifest",
34-
"upgrade" => "update package list and install updates",
3533
"selfupdate" => "update the package manager",
3634
"download" => "download package list and updates, but don't insatall them",
35+
"build" => "build a package from source and install it",
36+
"selection/manual" => "list manually installed packages", # this should probably be a `list` option ("upm list --manually-added" or smth (would be nice: rewrite in go and use ipfs' arg parsing library))
3737
"pin" => "pinning a package means it won't be automatically upgraded",
3838
"rollback" => "revert to an earlier version of a package (including its dependencies)",
3939
"verify/check" => "verify the integrity of packages' files on the filesystem",
@@ -42,6 +42,7 @@ class Tool
4242
"log" => "show history of package installs",
4343
"packagers" => "detect installed package managers, and pick which ones upm should wrap",
4444
"clean" => "clear out the local package cache",
45+
"orphans" => "dependencies which are no longer needed",
4546
"monitor" => "ad-hoc package manager for custom installations (like instmon)",
4647
"keys" => "keyrings and package authentication",
4748
"default" => "configure the action to take when no arguments are passed to 'upm' (defaults to 'os:update')",

lib/upm/tools/xbps.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
command "locate", "xlocate", paged: true
1313
command "selection", "xbps-query -m", paged: true
1414
command "rdeps", "xbps-query -X", paged: true
15+
command "orphans", "xbps-query -O", paged: true
1516

1617
command "info" do |args|
1718
args.each do |arg|

0 commit comments

Comments
 (0)