pkgsrc
. (Home: http://pkgin.net/)Parameter | Choices/Defaults | Comments |
---|---|---|
clean boolean |
| Clean packages cache |
force boolean |
| Force package reinstall |
full_upgrade boolean |
| Upgrade all packages to their newer versions |
name - | Name of package to install/remove; multiple names may be given, separated by commas | |
state - |
| Intended state of the package |
update_cache boolean |
| Update repository database. Can be run with other steps or on it's own. |
upgrade boolean |
| Upgrade main packages to their newer versions |
Note
# install package foo - pkgin: name: foo state: present # Update database and install "foo" package - pkgin: name: foo update_cache: yes # remove package foo - pkgin: name: foo state: absent # remove packages foo and bar - pkgin: name: foo,bar state: absent # Update repositories as a separate step - pkgin: update_cache: yes # Upgrade main packages (equivalent to C(pkgin upgrade)) - pkgin: upgrade: yes # Upgrade all packages (equivalent to C(pkgin full-upgrade)) - pkgin: full_upgrade: yes # Force-upgrade all packages (equivalent to C(pkgin -F full-upgrade)) - pkgin: full_upgrade: yes force: yes # clean packages cache (equivalent to C(pkgin clean)) - pkgin: clean: yes
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/pkgin_module.html