Update documentation with Usage examples

This commit is contained in:
Tomas Edwardsson 2013-07-16 09:39:57 +00:00
parent 5d331dd5e7
commit 755f10f014
1 changed files with 19 additions and 0 deletions

View File

@ -18,6 +18,25 @@ check for updates but they are distribution specific. The main drivers are:
* No sudo/selinux problems
* Non distribution specific, works on debian, ubuntu, fedora, centos, rhel...
Usage
=====
Critical on all security type updates
-------------------------------------
```
$ check_pkgkit --no-longoutput --th "metric=security,critical=1..inf"
Critical - Total: 67, Security: 15, Bug fix: 48, Enhancement: 0, Normal: 4. Critical on security | 'total'=67;;;; 'security'=15;;1..inf;; 'bug fix'=48;;;; 'normal'=4;;;;
```
Critical on all security type updates and warning on many total updates
-----------------------------------------------------------------------
```
$ python check_pkgkit --no-longoutput --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf"
Critical - Total: 67, Security: 15, Bug fix: 48, Enhancement: 0, Normal: 4. Critical on security. Warning on total | 'total'=67;40..inf;;; 'security'=15;;1..inf;; 'bug fix'=48;;;; 'normal'=4;;;;
```
Caveats
=======
* PackageKit does draw in quite a few packages with it.