| 1 |
.. Open Infrastructure: compute-tools |
| 2 |
|
| 3 |
.. Copyright (C) 2014-2026 Daniel Baumann <[email protected]> |
| 4 |
.. |
| 5 |
.. SPDX-License-Identifier: GPL-3.0+ |
| 6 |
.. |
| 7 |
.. This program is free software: you can redistribute it and/or modify |
| 8 |
.. it under the terms of the GNU General Public License as published by |
| 9 |
.. the Free Software Foundation, either version 3 of the License, or |
| 10 |
.. (at your option) any later version. |
| 11 |
.. |
| 12 |
.. This program is distributed in the hope that it will be useful, |
| 13 |
.. but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
.. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
.. GNU General Public License for more details. |
| 16 |
.. |
| 17 |
.. You should have received a copy of the GNU General Public License |
| 18 |
.. along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
================ |
| 21 |
container-update |
| 22 |
================ |
| 23 |
|
| 24 |
-------------------------------------------- |
| 25 |
Update the packages installed in a container |
| 26 |
-------------------------------------------- |
| 27 |
|
| 28 |
:manual section: 1 |
| 29 |
:manual group: Open Infrastructure |
| 30 |
|
| 31 |
Synopsis |
| 32 |
======== |
| 33 |
|
| 34 |
| **container update** ['OPTIONS'] |
| 35 |
| **cnt u** ['OPTIONS'] |
| 36 |
|
| 37 |
Description |
| 38 |
=========== |
| 39 |
|
| 40 |
The **container update** command updates packages installed in a container. |
| 41 |
|
| 42 |
Options |
| 43 |
======= |
| 44 |
|
| 45 |
The following **container update** options are available: |
| 46 |
|
| 47 |
-n, --name='NAME': |
| 48 |
Specify container name. Specifying 'ALL' will start all stopped container. |
| 49 |
|
| 50 |
-f, --full-upgrade: |
| 51 |
Runs an additional 'apt full-upgrade' after 'apt upgrade'. |
| 52 |
|
| 53 |
-i, --interactive: |
| 54 |
Prompt before every container update. |
| 55 |
|
| 56 |
-r, --autoremove: |
| 57 |
Runs an additional 'apt autoremove' after 'apt upgrade'. |
| 58 |
|
| 59 |
-p, --purge: |
| 60 |
Passing '--purge' to 'apt autoremove'. |
| 61 |
|
| 62 |
-y|--yes: |
| 63 |
Passing 'yes' to all questions asked by the package manager. |
| 64 |
|
| 65 |
Examples |
| 66 |
======== |
| 67 |
|
| 68 |
Update example.net container (apt update && apt upgrade): |
| 69 |
|
| 70 |
sudo container update -n example.net |
| 71 |
|
| 72 |
Update example.net container without asking questions (apt update && apt --yes |
| 73 |
upgrade): |
| 74 |
|
| 75 |
sudo container update -n example.net -y |
| 76 |
|
| 77 |
Full update of example.net container without asking questions (apt update && |
| 78 |
apt --yes upgrade && apt --yes full-upgrade): |
| 79 |
|
| 80 |
sudo container update -n example.net -f -y |
| 81 |
|
| 82 |
Full update of all container on the host, with asking questions and |
| 83 |
purging unused packages (apt update && apt upgrade && apt full-upgrade && apt |
| 84 |
autoremove): |
| 85 |
|
| 86 |
sudo container update -n ALL -f -r -p -y |
| 87 |
|
| 88 |
See also |
| 89 |
======== |
| 90 |
|
| 91 |
| compute-tools(7), |
| 92 |
| container(1). |
| 93 |
|
| 94 |
Homepage |
| 95 |
======== |
| 96 |
|
| 97 |
More information about compute-tools and the Open Infrastructure project can be |
| 98 |
found on the homepage (https://open-infrastructure.net). |
| 99 |
|
| 100 |
Contact |
| 101 |
======= |
| 102 |
|
| 103 |
Bug reports, feature requests, help, patches, support and everything else are |
| 104 |
welcome on the Open Infrastructure Software Mailing List |
| 105 |
<[email protected]>. |
| 106 |
|
| 107 |
Debian specific bugs can also be reported in the Debian Bug Tracking System |
| 108 |
(https://bugs.debian.org). |
| 109 |
|
| 110 |
Authors |
| 111 |
======= |
| 112 |
|
| 113 |
compute-tools were written by Daniel Baumann |
| 114 |
<[email protected]> and others. |