Bug 959990

Summary: dnf dist-sync recommended in manual page but is missing from dnf's command line options
Product: [Fedora] Fedora Reporter: Ameya Sathe <aakreet40-rhce>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: akozumpl, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-0.3.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-06 13:46:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ameya Sathe 2013-05-06 11:16:32 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Firefox/17.0
Build Identifier: 

In the manual page for dnf version 0.2.22 section 8; the following help is mentioned
"  Dist-sync command
       dnf dist-sync
              As   necessary   upgrades,   downgrades  or  keeps  all
              installed packages to match the latest  version  availā€
              able from any enabled repository.

   Distribution-sync command
       dnf distribution-sync
              Deprecated alias for the Dist-sync command.

"

When I try the same option on the command line; I get the following output
[root@my ~]# date
Mon May  6 16:41:00 IST 2013
[root@my ~]# rpm -q dnf
dnf-0.2.22-1.git97180b8.fc18.noarch
[root@my ~]# dnf dist-sync
No such command: dist-sync. Please use /usr/bin/dnf --help

dnf distribution-sync
This option is too missing from dnf command-line options.



Reproducible: Always

Steps to Reproduce:
1.man dnf
2.As root user; dnf dist-sync
3.As root user; dnf distribution-sync
Actual Results:  
No such command: dist-sync. Please use /usr/bin/dnf --help
No such command: distribution-sync. Please use /usr/bin/dnf --help

Expected Results:  
The options as stated in manual page need to work. The options stated for the command need to be documented in the manual page &/ Texinfo

Comment 1 Ales Kozumplik 2013-05-06 13:46:46 UTC
Hello,

this is a mistake in the documentation: the command name is the same as in Yum, working spellings are 'distro-sync' and 'distribution-synchronization'.

Commit fd83a20 addresses the issue, the fix will be available with dnf-0.3.5 in F19 and later.

Thanks for reporting this.