Skip to content

[Bug]: RPM Install Should Include Upgrade Flag #5383

Closed
@shawnweeks

Description

@shawnweeks

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: All
  • Local OS: MacOS 12.4
  • Remote OS: Rocky 8
  • Remote Architecture: x86 64
  • code-server --version: 4.5.1 97d1703 with Code 1.68.1

The issue from #2347 has never been resolved. We should update our install script to include the -U option when doing upgrades otherwise every upgrade on an EL distro will require manually re-running the rpm command to apply the update

Steps to Reproduce

  1. Install code-server using curl -fsSL https://code-server.dev/install.sh | sh
  2. Wait for an update to come out
  3. Try an install the upgrade using the same command curl -fsSL https://code-server.dev/install.sh | sh

Expected

Upgrade should apply

Actual

Error messages like these

file /usr/lib/code-server/out/node/wsRouter.js from install of code-server-0:4.5.1-1.x86_64 conflicts with file from package code-server-0:4.4.0-1.x86_64
file /usr/lib/code-server/out/node/wsRouter.js.map from install of code-server-0:4.5.1-1.x86_64 conflicts with file from package code-server-0:4.4.0-1.x86_64
file /usr/lib/code-server/package.json from install of code-server-0:4.5.1-1.x86_64 conflicts with file from package code-server-0:4.4.0-1.x86_64
file /usr/lib/code-server/postinstall.sh from install of code-server-0:4.5.1-1.x86_64 conflicts with file from package code-server-0:4.4.0-1.x86_64
file /usr/lib/code-server/yarn.lock from install of code-server-0:4.5.1-1.x86_64 conflicts with file from package code-server-0:4.4.0-1.x86_64

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions