Skip to content

Update update-cloudflared.mdx #21868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Conversation

lucasdellasantina
Copy link
Contributor

Summary

Change Description
This pull request proposes changing the command sudo apt-get upgrade cloudflared to sudo apt-get update && sudo apt-get upgrade cloudflared to ensure cloudflared is updated correctly.

Justification
The command sudo apt-get upgrade cloudflared does not update cloudflared if the package list is not up-to-date. By adding sudo apt-get update, we ensure the package list is updated before attempting to upgrade cloudflared.

Screenshots (optional)

image

Documentation checklist

Change Description
This pull request proposes changing the command sudo apt-get upgrade cloudflared to sudo apt-get update && sudo apt-get upgrade cloudflared to ensure cloudflared is updated correctly.

Justification
The command sudo apt-get upgrade cloudflared does not update cloudflared if the package list is not up-to-date. By adding sudo apt-get update, we ensure the package list is updated before attempting to upgrade cloudflared.

Evidence
Below is the evidence showing that cloudflared does not update correctly without the sudo apt-get update command:



armstrong@APOLO:~$ sudo apt-get upgrade cloudflared
[sudo] password for debian:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
cloudflared is already the newest version (2025.2.1).
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libdbus-glib-1-2 linux-image-6.1.0-25-amd64 linux-image-6.1.0-26-amd64 linux-image-6.1.0-28-amd64
  linux-image-6.1.0-29-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copy link
Contributor

hyperlint-ai bot commented Apr 22, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Updated the command for upgrading cloudflared to ensure the package list is refreshed before the upgrade.

  • Changed the upgrade command to include package list update
  • Ensured correct updating of cloudflared package

Modified Files

  • src/content/docs/cloudflare-one/connections/connect-networks/downloads/update-cloudflared.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@ranbel
Copy link
Contributor

ranbel commented Apr 22, 2025

The apt-get update suggestion makes sense to me. However, the screenshot does not actually show cloudflared being updated. Did you use dpkg -i to install cloudflared? If so, you should use the dpkg command shown in the docs, i.e. curl --location --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb

@ranbel ranbel enabled auto-merge (squash) April 22, 2025 22:38
@ranbel ranbel merged commit d23b09c into cloudflare:production Apr 22, 2025
8 checks passed
@workers-devprod workers-devprod added the contribution [Holopin] Recognizes a docs contribution, big or small label Apr 23, 2025
Copy link

holopin-bot bot commented Apr 23, 2025

Congratulations @lucasdellasantina, the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cm9t82mqc64620cl1tiaq57xv

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution [Holopin] Recognizes a docs contribution, big or small product:cloudflare-one size/xs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants