Bug 1266780 - RFE: port "show-installed" plugin
Summary: RFE: port "show-installed" plugin
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-extras
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Daniel Mach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: dnf-community
TreeView+ depends on / blocked
 
Reported: 2015-09-27 19:27 UTC by d. johnson
Modified: 2023-08-09 19:56 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-09 19:56:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
"rpm -qa" output for compare (16.66 KB, text/plain)
2015-12-13 00:06 UTC, d. johnson
no flags Details
"show-installed" output for compare. (520 bytes, text/plain)
2015-12-13 00:07 UTC, d. johnson
no flags Details

Description d. johnson 2015-09-27 19:27:06 UTC
Description of problem:

DNF has no replacement for "show-installed -f kickstart"

Version-Release number of selected component (if applicable):

all.

How reproducible:

100%

Steps to Reproduce:
1. run "show-installed -f kickstart -o /tmp/installed.txt" to produce a list of high level deps you could use with "dnf kickstart"
2. there is no dnf version of this tool.
3.

Actual results:

nothing.

Expected results:

a viable text file to use with 'dnf kickstart' or inside an anaconda kickstart file's %package list.

Additional info:

Comment 1 Honza Silhan 2015-10-13 13:18:23 UTC
`dnf repoquery --installed > /tmp/installed.txt` is not enough? Do you really need that file minimal?

Comment 2 d. johnson 2015-10-14 03:27:07 UTC
please run rhel7 or something old enough that still has show-installed.

The output is incredibly useful.

on dnf based systems, this output is simply unavailable.  it is NOT the same thing as 'rpm -qa' at all. 'dnf repoquery --installed' is the longer wait version of simply 'rpm -qa'.  It does not show groups.  It does not actually help create a useful and easy to read kickstart file.

See for example, https://git.fedorahosted.org/cgit/spin-kickstarts.git/tree/fedora-workstation-packages.ks

Comment 3 Igor Gnatenko 2015-12-12 19:21:05 UTC
Please provide exactly what do you expecting.

Comment 4 d. johnson 2015-12-12 19:31:27 UTC
Easy.  I'm expecting output exactly like the spins already use.

For example:

https://git.fedorahosted.org/cgit/spin-kickstarts.git/tree/fedora-cinnamon-packages.ks

This does not simply run 'rpm -qa' or 'dnf repoquery -installed', it lists the smallest number of lines that a kickstart would use to reproduce the same installation.

Comment 5 Igor Gnatenko 2015-12-12 19:36:18 UTC
Show exact output of both commands and provide what you are expecting. Not just link and few words.

Comment 6 d. johnson 2015-12-13 00:06:39 UTC
Created attachment 1105212 [details]
"rpm -qa" output for compare

Comment 7 d. johnson 2015-12-13 00:07:09 UTC
Created attachment 1105213 [details]
"show-installed" output for compare.

Comment 8 d. johnson 2015-12-13 00:09:31 UTC
This attached output is from a simple bootup, and run both the commands in question.  

You can see that one file is very concise and easy to read, with only top-level deps listed.  

The other file is every single package installed, without regard to any dep-tree.

Comment 9 Igor Gnatenko 2015-12-13 09:11:36 UTC
ok, makes sense, but i dont have time to implement it now.

Comment 10 Fedora Admin XMLRPC Client 2016-07-21 12:40:28 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Jaroslav Mracek 2023-08-09 19:56:34 UTC
I am sorry but the issue is not active for a while therefore I am closing it.


Note You need to log in before you can comment on or make changes to this bug.