Bug 1211170 - yum provides should account for --excludedocs
Summary: yum provides should account for --excludedocs
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Other
low
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1215597 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-13 08:53 UTC by Loic Dachary
Modified: 2017-05-12 17:48 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-12 17:48:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Loic Dachary 2015-04-13 08:53:28 UTC
Description of problem:

%packages --excludedocs --instLangs=en --nocore prevents manual pages from being installed. Still, yum leads the user to believe they will be installed. Forcing the installation of the manual pages or even tracing the reason for the man pages to be absent requires knowledge that is beyond what most user have. There should be so kind of hint in yum provides output to explain this is not a problem. 

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

Fedora 21

How reproducible:

Always

Steps to Reproduce:

$ docker run -t -i fedora:21 bash
# yum provides /usr/share/man/man1/ls.1.gz
fedora/21/x86_64/filelists_db                                                                                                                                           |  25 MB  00:00:01     
updates/21/x86_64/filelists_db                                                                                                                                          |  13 MB  00:00:00     
coreutils-8.22-19.fc21.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo        : fedora
Matched from:
Filename    : /usr/share/man/man1/ls.1.gz
coreutils-8.22-19.fc21.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo        : @anaconda
Matched from:
Filename    : /usr/share/man/man1/ls.1.gz
# yum install coreutils
Package coreutils-8.22-19.fc21.x86_64 already installed and latest version
Nothing to do
# ls -l /usr/share/man/man1/ls.1.gz
ls: cannot access /usr/share/man/man1/ls.1.gz: No such file or directory
# yum install man
# man ls
No manual entry for ls

Expected results:

yum provides should display : "Not installed because --excludedocs was specified at XXXX read more at URL"

Additional info:

https://fedorahosted.org/rel-eng/ticket/6146https://fedorahosted.org/rel-eng/ticket/6145

Comment 1 Matthew Miller 2015-04-23 10:59:01 UTC
This is probably unlikely to be fixed in yum, since yum is no longer being actively developed. It seems like a reasonable request for dnf, the yum replacement, though. Can you test in F22 with dnf? (I think that it does in fact have similar behavior currently.)

PS I know you came here from a rel-eng ticket, and I appreciate the effort in following through -- not intending to introduce another hoop here...

Comment 2 Loic Dachary 2015-04-27 08:54:02 UTC
Hi,

I'm not sure how to test that on F22 because I don't understand how --excludedocs is used in the context of Fedora docker image. 

I filled https://bugzilla.redhat.com/show_bug.cgi?id=1215597 so that there is at least a link in dnf. With a warning that this is a bug report to be verified.

Cheers

Comment 3 Alejandro Alvarez 2015-04-27 08:57:23 UTC
Hi,

I imagine you meant to assign to dnf instead of dmlite?

Cheers.

Comment 4 Jan Kurik 2015-07-15 14:17:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 5 Honza Silhan 2015-07-22 09:43:19 UTC
*** Bug 1215597 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Admin XMLRPC Client 2016-07-08 09:37:18 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Jaroslav Mracek 2017-05-12 17:48:56 UTC
I am sorry but command ``dnf provides`` cannot provide such a information. But what you requested could be done by other way.
If some man pages are missing you can do:

1. dnf install /usr/share/man/man1/ls.1.gz

If it reports that package is already installed but file is not there and you want it just do (it could not be there for more reasons)

2. dnf reinstall /usr/share/man/man1/ls.1.gz

Hope that it helps. But this is particularly not a bug of dnf, therefore I have to close it.


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