[pve-devel] [PATCH pve-docs] Close #1623: replace apt-get to apt

Oguz Bektas o.bektas at proxmox.com
Mon Jul 6 13:39:46 CEST 2020


hi,

what about the 'dist-upgrade' occurences? should these also be replaced
by 'full-upgrade' for completeness sake?

On Mon, Jul 06, 2020 at 01:38:29PM +0200, Moayad Almalat wrote:
> Signed-off-by: Moayad Almalat <m.almalat at proxmox.com>
> ---
>  api-viewer/apidata.js        | 8 ++++----
>  local-zfs.adoc               | 4 ++--
>  pve-firewall.adoc            | 2 +-
>  pve-installation.adoc        | 4 ++--
>  pve-package-repos.adoc       | 2 +-
>  pve-storage-iscsi.adoc       | 2 +-
>  qm-cloud-init.adoc           | 2 +-
>  system-software-updates.adoc | 6 +++---
>  8 files changed, 15 insertions(+), 15 deletions(-)
> 
> diff --git a/api-viewer/apidata.js b/api-viewer/apidata.js
> index a44e50e..818740c 100644
> --- a/api-viewer/apidata.js
> +++ b/api-viewer/apidata.js
> @@ -34214,7 +34214,7 @@ var pveapi = [
>                             },
>                             "POST" : {
>                                "allowtoken" : 1,
> -                              "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
> +                              "description" : "This is used to resynchronize the package index files from their sources (apt update).",
>                                "method" : "POST",
>                                "name" : "update_database",
>                                "parameters" : {
> @@ -37010,7 +37010,7 @@ var pveapi = [
>                                },
>                                "upgrade" : {
>                                   "default" : 0,
> -                                 "description" : "Deprecated, use the 'cmd' property instead! Run 'apt-get dist-upgrade' instead of normal shell.",
> +                                 "description" : "Deprecated, use the 'cmd' property instead! Run 'apt dist-upgrade' instead of normal shell.",
>                                   "optional" : 1,
>                                   "type" : "boolean",
>                                   "typetext" : "<boolean>"
> @@ -37097,7 +37097,7 @@ var pveapi = [
>                                },
>                                "upgrade" : {
>                                   "default" : 0,
> -                                 "description" : "Deprecated, use the 'cmd' property instead! Run 'apt-get dist-upgrade' instead of normal shell.",
> +                                 "description" : "Deprecated, use the 'cmd' property instead! Run 'apt dist-upgrade' instead of normal shell.",
>                                   "optional" : 1,
>                                   "type" : "boolean",
>                                   "typetext" : "<boolean>"
> @@ -37229,7 +37229,7 @@ var pveapi = [
>                                },
>                                "upgrade" : {
>                                   "default" : 0,
> -                                 "description" : "Deprecated, use the 'cmd' property instead! Run 'apt-get dist-upgrade' instead of normal shell.",
> +                                 "description" : "Deprecated, use the 'cmd' property instead! Run 'apt dist-upgrade' instead of normal shell.",
>                                   "optional" : 1,
>                                   "type" : "boolean",
>                                   "typetext" : "<boolean>"
> diff --git a/local-zfs.adoc b/local-zfs.adoc
> index fd03e89..0271510 100644
> --- a/local-zfs.adoc
> +++ b/local-zfs.adoc
> @@ -333,10 +333,10 @@ Activate E-Mail Notification
>  ZFS comes with an event daemon, which monitors events generated by the
>  ZFS kernel module. The daemon can also send emails on ZFS events like
>  pool errors. Newer ZFS packages ship the daemon in a separate package,
> -and you can install it using `apt-get`:
> +and you can install it using `apt`:
>  
>  ----
> -# apt-get install zfs-zed
> +# apt install zfs-zed
>  ----
>  
>  To activate the daemon it is necessary to edit `/etc/zfs/zed.d/zed.rc` with your
> diff --git a/pve-firewall.adoc b/pve-firewall.adoc
> index 7089778..f286018 100644
> --- a/pve-firewall.adoc
> +++ b/pve-firewall.adoc
> @@ -573,7 +573,7 @@ Rejected/Dropped firewall packets don't go to the IPS.
>  Install suricata on proxmox host:
>  
>  ----
> -# apt-get install suricata
> +# apt install suricata
>  # modprobe nfnetlink_queue  
>  ----
>  
> diff --git a/pve-installation.adoc b/pve-installation.adoc
> index 0d416ac..5129c14 100644
> --- a/pve-installation.adoc
> +++ b/pve-installation.adoc
> @@ -291,8 +291,8 @@ xref:sysadmin_package_repositories[After configuring the repositories] you need
>  to run the following commands:
>  
>  ----
> -# apt-get update
> -# apt-get install proxmox-ve
> +# apt update
> +# apt install proxmox-ve
>  ----
>  
>  Installing on top of an existing Debian installation looks easy, but it presumes
> diff --git a/pve-package-repos.adoc b/pve-package-repos.adoc
> index 4fcf147..34d1700 100644
> --- a/pve-package-repos.adoc
> +++ b/pve-package-repos.adoc
> @@ -13,7 +13,7 @@ defined in the file `/etc/apt/sources.list` and in `.list` files placed in
>  Each line defines a package repository. The preferred source must come first.
>  Empty lines are ignored. A `#` character anywhere on a line marks the remainder
>  of that line as a comment. The available packages from a repository are acquired
> -by running `apt-get update`. Updates can be installed directly using `apt-get`,
> +by running `apt update`. Updates can be installed directly using `apt`,
>  or via the GUI.
>  
>  .File `/etc/apt/sources.list`
> diff --git a/pve-storage-iscsi.adoc b/pve-storage-iscsi.adoc
> index 93975f5..4fcfb92 100644
> --- a/pve-storage-iscsi.adoc
> +++ b/pve-storage-iscsi.adoc
> @@ -19,7 +19,7 @@ http://www.open-iscsi.org/[Open-iSCSI] (`open-iscsi`) package. This is a
>  standard Debian package, but it is not installed by default to save
>  resources.
>  
> -  # apt-get install open-iscsi
> +  # apt install open-iscsi
>  
>  Low-level iscsi management task can be done using the `iscsiadm` tool.
>  
> diff --git a/qm-cloud-init.adoc b/qm-cloud-init.adoc
> index 895db9f..6744ccf 100644
> --- a/qm-cloud-init.adoc
> +++ b/qm-cloud-init.adoc
> @@ -45,7 +45,7 @@ Simply install the Cloud-Init packages inside the VM that you want to
>  prepare. On Debian/Ubuntu based systems this is as simple as:
>  
>  ----
> -apt-get install cloud-init
> +apt install cloud-init
>  ----
>  
>  Already many distributions provide ready-to-use Cloud-Init images (provided
> diff --git a/system-software-updates.adoc b/system-software-updates.adoc
> index 013e171..f0df410 100644
> --- a/system-software-updates.adoc
> +++ b/system-software-updates.adoc
> @@ -8,12 +8,12 @@ Proxmox provides updates on a regular basis for all repositories. To install
>  updates use the web-based GUI or the following CLI commands:
>  
>  ----
> -# apt-get update
> -# apt-get dist-upgrade
> +# apt update
> +# apt dist-upgrade
>  ----
>  
>  NOTE: The APT package management system is very flexible and provides many
> -features, see `man apt-get`, or <<Hertzog13>> for additional information.
> +features, see `man apt`, or <<Hertzog13>> for additional information.
>  
>  TIP: Regular updates are essential to get the latest patches and security
>  related fixes. Major system upgrades are announced in the {forum}.
> -- 
> 2.20.1
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 




More information about the pve-devel mailing list