Skip to content

[Update the cloudflared package] command is misleading #23247

@nguyenvulong

Description

@nguyenvulong

Example URL(s)

Link: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/update-cloudflared/

Actual Behavior

This command on Debian

sudo apt-get update && sudo apt-get upgrade cloudflared

doesn't just upgrade cloudflared, but upgrades all upgradable packages on the system. This is because apt-get upgrade does not accept specific package names.

Expected Behavior

cloudflared should be updated to the newest version, but apt cannot do that. And sudo apt-get upgrade cloudflared is misleading.

Additional information

One can also try

sudo apt-get update && sudo apt-get install --only-upgrade cloudflared

But even so, the newest version of cloudflared will not be installed in Debian/Ubuntu system.

The second method (using dpkg -i) is much safer

curl --location --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb

Upgrading all packages on a production server may lead to many issues and I believe Cloudflare knows about it more than any other companies. I hope the docs can be updated soon.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions