Opened 4 years ago
Last modified 4 years ago
#16646 new enhancement
add list packages and list package content to pkgman
Reported by: | lt_henry | Owned by: | nobody |
---|---|---|---|
Priority: | low | Milestone: | Unscheduled |
Component: | Applications/Command Line Tools | Version: | R1/Development |
Keywords: | pkgman | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
I know that I can get installed packages and its content from boot/system/packages. But imho, pkgman should implement this features that are common to almost every package manager command line tool. I think any unix-like user will expect to have it. It may help to write scripts.
Seems an easy task. I could provide a patch, even.
Change History (6)
comment:1 by , 4 years ago
Component: | - General → Applications/Command Line Tools |
---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
Use ls to list installed packages.
Some of packages may be not present in activated-packages
. activated-packages
may not contain actual activated packages (previous state, edit by hand). It should be some utility and API that list all packages that are activated (mounted by PackageFS).
comment:4 by , 4 years ago
I agree that this features are just a wrapper on top of other commands but imho, are features that one expect to be there in any package manager command line tool. Thats how I would solve it:
#pkgman list-packages
bison 1.0 a
flex 1.1 -
...
A space separated columns with: name version status (activated...)
Listing package contents perhaps, it is really out of the scope of pkgman
but at least, would be nice to allow package
to accept just the name of the package:
package list bison
comment:5 by , 4 years ago
Ok, my fault. But I have to say it was a bit hidden...
#pkgman search -aiD
That lists installed packages showing short name, version and architecture. Just what any unix user expects from respective package cli. Syntax is a bit tricky... but anyone who have worked with Archlinux pacman will find it even friendly :D
However, for the package contents part, seems there is no other way than specifying full package path. I think would be handy (tbh I find it almost mandatory) to list package contents with only package name.
Is there a situation where two packages are installed with the same name?
Use the
package
command to list package contents.Use
ls
to list installed packages.No need to add these to pkgman?