This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
userspace:opsi-pkg [2013/04/16 15:38] phimeca created |
userspace:opsi-pkg [2013/05/06 09:55] phimeca |
||
---|---|---|---|
Line 10: | Line 10: | ||
$ opsi-pkg | $ opsi-pkg | ||
usage: opsi-pkg [--help] [--quiet] [--verbose] [--debug] [--default] [--yes] | usage: opsi-pkg [--help] [--quiet] [--verbose] [--debug] [--default] [--yes] | ||
- | [--no] [--ping] [--list] [--add] [--delete] | + | [--no] [--force] [--fire] [--ping] [--list] [--add] [--delete] |
- | --call {shutdown, reboot, wakeup, delete, fire, popup " | + | [--call |
- | [--host [HOST [HOST ...]]] [--package [PACKAGE [PACKAGE ...]]] | + | [--request |
+ | | ||
+ | | ||
[--host-group [HOST_GROUP [HOST_GROUP ...]]] | [--host-group [HOST_GROUP [HOST_GROUP ...]]] | ||
[--package-group [PACKAGE_GROUP [PACKAGE_GROUP ...]]] | [--package-group [PACKAGE_GROUP [PACKAGE_GROUP ...]]] | ||
Line 26: | Line 28: | ||
--yes, -y | --yes, -y | ||
--no answer no to every question | --no answer no to every question | ||
- | --ping | + | |
+ | --fire | ||
+ | | ||
--list, -l List something. Combine it with: -h, -p, -h -p, -hg, -pg. | --list, -l List something. Combine it with: -h, -p, -h -p, -hg, -pg. | ||
--add, -a Add something. Combine it with: -hg, -pg, -hg -h, -pg -p | --add, -a Add something. Combine it with: -hg, -pg, -hg -h, -pg -p | ||
--delete, -d Delete something. Combine it with: -hg, -pg, -hg -h, -pg -p. | --delete, -d Delete something. Combine it with: -hg, -pg, -hg -h, -pg -p. | ||
- | --call {shutdown, reboot, wakeup, delete, fire, popup " | + | --call, -c {shutdown, reboot, wakeup, delete, fire, popup " |
- | | + | |
- | --setup, -s | + | --request, -r {setup, uninstall, once, update, custom, userLogin, always} |
- | --uninstall, -u | + | Set next action (pulled by hosts) |
+ | --setup, -s | ||
+ | | ||
--host [HOST [HOST ...]], -h [HOST [HOST ...]] | --host [HOST [HOST ...]], -h [HOST [HOST ...]] | ||
Do sthg with host. No host given means every hosts.) | Do sthg with host. No host given means every hosts.) | ||
Line 53: | Line 59: | ||
- | - | ||
+ | |||
+ | # list installed packages on every computer | ||
+ | opsi-pkg -l -p -h | ||
# list installed packages on tata computer | # list installed packages on tata computer | ||
opsi-pkg -l -p -h tata | opsi-pkg -l -p -h tata | ||
- | # list installed packages | + | # list package font on every computer |
- | opsi-pkg -l -p -h | + | opsi-pkg -l -p font -h |
+ | |||
+ | # list packages | ||
+ | opsi-pkg -l -p font office | ||
- | - | ||
Line 96: | Line 108: | ||
# delete host tutu from OPSI | # delete host tutu from OPSI | ||
opsi-pkg -c delete -h tutu | opsi-pkg -c delete -h tutu | ||
+ | |||
+ | - | ||
# install firefox on computer tata | # install firefox on computer tata | ||
- | opsi-pkg -s -p firefox -h tata | + | opsi-pkg -r setup -p firefox -h tata |
- | # install firefox on computers that belongs to ' | + | # install firefox on computers that belongs to ' |
- | opsi-pkg -s -p firefox -hg pc | + | # already install and up-to-date and push the setup now |
+ | opsi-pkg -s -p firefox -hg pc --force --fire | ||
# install firefox on computers that belongs to ' | # install firefox on computers that belongs to ' | ||
Line 108: | Line 123: | ||
# install base packages on computers that belongs to ' | # install base packages on computers that belongs to ' | ||
opsi-pkg -s -pg base -hg pc | opsi-pkg -s -pg base -hg pc | ||
+ | |||
+ | # uninstall firefox on computers that belongs to ' | ||
+ | opsi-pkg -u -p firefox -hg pc | ||
+ | |||
+ | # reset request on package firefox of the computer tata | ||
+ | opsi-pkg -r none -p firefox -h tata | ||
====== | ====== |