.. versionchanged:: 2015.8.12,2016.3.3,2016.11.0 On minions running systemd>=205, `systemd-run(1)`_ is now used to isolate commands which modify installed packages from the ``salt-minion`` daemon's control group. This is done to keep systemd from killing any apt-
(name=None, pkgs=None, **kwargs)
| 996 | |
| 997 | |
| 998 | def remove(name=None, pkgs=None, **kwargs): |
| 999 | """ |
| 1000 | .. versionchanged:: 2015.8.12,2016.3.3,2016.11.0 |
| 1001 | On minions running systemd>=205, `systemd-run(1)`_ is now used to |
| 1002 | isolate commands which modify installed packages from the |
| 1003 | ``salt-minion`` daemon's control group. This is done to keep systemd |
| 1004 | from killing any apt-get/dpkg commands spawned by Salt when the |
| 1005 | ``salt-minion`` service is restarted. (see ``KillMode`` in the |
| 1006 | `systemd.kill(5)`_ manpage for more information). If desired, usage of |
| 1007 | `systemd-run(1)`_ can be suppressed by setting a :mod:`config option |
| 1008 | <salt.modules.config.get>` called ``systemd.scope``, with a value of |
| 1009 | ``False`` (no quotes). |
| 1010 | |
| 1011 | .. _`systemd-run(1)`: https://www.freedesktop.org/software/systemd/man/systemd-run.html |
| 1012 | .. _`systemd.kill(5)`: https://www.freedesktop.org/software/systemd/man/systemd.kill.html |
| 1013 | |
| 1014 | Remove packages using ``apt-get remove``. |
| 1015 | |
| 1016 | name |
| 1017 | The name of the package to be deleted. |
| 1018 | |
| 1019 | |
| 1020 | Multiple Package Options: |
| 1021 | |
| 1022 | pkgs |
| 1023 | A list of packages to delete. Must be passed as a python list. The |
| 1024 | ``name`` parameter will be ignored if this option is passed. |
| 1025 | |
| 1026 | .. versionadded:: 0.16.0 |
| 1027 | |
| 1028 | |
| 1029 | Returns a dict containing the changes. |
| 1030 | |
| 1031 | CLI Example: |
| 1032 | |
| 1033 | .. code-block:: bash |
| 1034 | |
| 1035 | salt '*' pkg.remove <package name> |
| 1036 | salt '*' pkg.remove <package1>,<package2>,<package3> |
| 1037 | salt '*' pkg.remove pkgs='["foo", "bar"]' |
| 1038 | """ |
| 1039 | return _uninstall(action="remove", name=name, pkgs=pkgs, **kwargs) |
| 1040 | |
| 1041 | |
| 1042 | def purge(name=None, pkgs=None, **kwargs): |
nothing calls this directly
no test coverage detected