container-images / dnf-modularity-prototype

Image for usable DNF "flat" modularity prototype
1 stars 2 forks source link

document the prototype #4

Open TomasTomecek opened 7 years ago

TomasTomecek commented 7 years ago

We need a documentation on how to use the dnf prototype: providing it via readme in this repo should be fine.

I guess this should be collaboration between us and @mhatina.

The main reason for this is that --help of dnf module is not very helpful:

bash-4.4# dnf module enable haproxy
Bad id for repo: Boltron compose, byte =   7
Last metadata expiration check: 0:00:23 ago on Thu May 25 08:31:50 2017 UTC.
You need to specify STREAM for haproxy

bash-4.4# dnf module enable haproxy f26
Bad id for repo: Boltron compose, byte =   7
Last metadata expiration check: 0:00:27 ago on Thu May 25 08:31:50 2017 UTC.
You need to specify STREAM for haproxy
You need to specify STREAM for f26

bash-4.4# dnf module enable haproxy/f26
Bad id for repo: Boltron compose, byte =   7
Last metadata expiration check: 0:00:32 ago on Thu May 25 08:31:50 2017 UTC.
You need to specify STREAM for haproxy/f26

bash-4.4# dnf module enable haproxy@f26
Bad id for repo: Boltron compose, byte =   7
Last metadata expiration check: 0:00:37 ago on Thu May 25 08:31:50 2017 UTC.
You need to specify STREAM for haproxy@f26

bash-4.4# dnf module enable -h
usage: dnf module [-c [config file]] [-q] [-v] [--version]
                  [--installroot [path]] [--nodocs] [--noplugins]
                  [--enableplugin [plugin]] [--disableplugin [plugin]]
                  [--releasever RELEASEVER] [--setopt SETOPTS] [--skip-broken]
                  [-h] [--allowerasing] [-b] [-C] [-R [minutes]]
                  [-d [debug level]] [--debugsolver] [--showduplicates]
                  [-e ERRORLEVEL] [--obsoletes]
                  [--rpmverbosity [debug level name]] [-y] [--assumeno]
                  [--enablerepo [repo]] [--disablerepo [repo] | --repo [repo]]
                  [-x [package]] [--disableexcludes [repo]]
                  [--repofrompath [repo,path]] [--nogpgcheck] [--color COLOR]
                  [--refresh] [-4] [-6] [--downloadonly] [--bugfix]
                  [--enhancement] [--newpackage] [--security]
                  [--advisory ADVISORY] [--bzs BUGZILLA] [--cves CVES]
                  [--sec-severity {Critical,Important,Moderate,Low}]
                  {update,install,disable,enable,info,list} ...

Interact with Modules.

positional arguments:
  {update,install,disable,enable,info,list}

optional arguments:
  --disablerepo [repo]
  --repo [repo], --repoid [repo]
                        enable just specific repositories by an id or a glob,
                        can be specified multiple times

Optional arguments:
  -c [config file], --config [config file]

...
mhatina commented 7 years ago

I have changed the error message so it is much clearer how to use it.