Opened 4 months ago

Last modified 3 months 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 waddlesplash, 4 months ago

Component: - GeneralApplications/Command Line Tools

comment:2 by pulkomandy, 4 months ago

Use the package command to list package contents.

Use ls to list installed packages.

No need to add these to pkgman?

comment:3 by X512, 4 months 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 lt_henry, 4 months 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 lt_henry, 3 months 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?

comment:6 by waddlesplash, 3 months ago

Nope, it is not permitted.

Note: See TracTickets for help on using tickets.