Skip to content
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

Package area for Linux is not being kept up to date. #7883

Open
Bruce-Ferjulian opened this issue Nov 12, 2024 · 5 comments
Open

Package area for Linux is not being kept up to date. #7883

Bruce-Ferjulian opened this issue Nov 12, 2024 · 5 comments
Assignees

Comments

@Bruce-Ferjulian
Copy link

If you follow the instructions at the following URL https://code.visualstudio.com/docs/setup/linux for adding the VScode repositories to a Linux host for auto updating the area is not being kept up to date.

The current version available if you execute on SuSE 15 SP6 ( zypper info code ) you get the following.

Information for package code:

Repository : Visual Studio Code
Name : code
Version : 1.95.0-1730153639.el8
Arch : x86_64
Vendor : Microsoft Corporation
Support Level : unknown
Installed Size : 377.2 MiB
Installed : Yes
Status : up-to-date
Source package : code-1.95.0-1730153639.el8.src
Upstream URL : https://code.visualstudio.com/
Summary : Code editing. Redefined.
Description :
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux
for installation instructions and FAQ.

If you run the Linux port of VScode and ask if there are any updates it will redirect you to Microsoft and tell you that the latest version is ( 1.95.2 ).

If Microsoft does not keep their repositories up to date it make it difficult for administrators to automatically keep the software up to date.

@Bruce-Ferjulian
Copy link
Author

If you look in the link ( https://packages.microsoft.com/yumrepos/vscode/Packages/c/ ) the highest version is ( v1.95.2 ) but when the client does an update it states that ( v1.95.0 ) is the highest version. Does this have something to do with what is pointed to some gpg link?

code-1.94.2-1728494086.el8.x86_64.rpm 10-Oct-2024 15:05 138.8 MB
code-1.95.0-1730152561.el8.aarch64.rpm 29-Oct-2024 18:05 141.1 MB
code-1.95.0-1730152575.el8.armv7hl.rpm 29-Oct-2024 18:06 131.1 MB
code-1.95.0-1730153639.el8.x86_64.rpm 29-Oct-2024 18:05 142.2 MB
code-1.95.1-1730354655.el8.armv7hl.rpm 31-Oct-2024 23:06 131.1 MB
code-1.95.1-1730354770.el8.aarch64.rpm 31-Oct-2024 23:05 141.1 MB
code-1.95.1-1730355393.el8.x86_64.rpm 31-Oct-2024 23:05 142.2 MB
code-1.95.2-1730980357.el8.armv7hl.rpm 08-Nov-2024 00:06 131.1 MB
code-1.95.2-1730980433.el8.aarch64.rpm 08-Nov-2024 00:05 141.1 MB
code-1.95.2-1730981571.el8.x86_64.rpm 08-Nov-2024 00:05 142.2 MB
code-exploration-1.93.0-1723616676.el8.armv7hl.rpm 14-Aug-2024 08:07 130.5 MB
code-exploration-1.93.0-1723616690.el8.aarch64.rpm 14-Aug-2024 08:06 142.4 MB

@Bruce-Ferjulian
Copy link
Author

A newer version has been posted.

On SUSE 15 SP6 if I check the code ( zypper info code ) it says I am up to date. If I take a look at the web location, there is a new kit posted but I am not seeing it.

code-1.95.3-1731513157.el8.x86_64.rpm

`# zypper info code

Information for package code:

Repository : @System
Name : code
Version : 1.95.2-1730981571.el8
Arch : x86_64
Vendor : Microsoft Corporation
Support Level : unknown
Installed Size : 377.2 MiB
Installed : Yes
Status : up-to-date
Source package : code-1.95.2-1730981571.el8.src
Upstream URL : https://code.visualstudio.com/
Summary : Code editing. Redefined.
Description :
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux
for installation instructions and FAQ.
`

@Bruce-Ferjulian
Copy link
Author

Just tried to execute ( zypper refresh 'Visual Studio Code' ) before the command ( zypper update ) and after the refresh, the SUSE system detects the newer VScode. Interesting that for the rest of the native ( SUSE ) repositories, a simple ( zypper update ) will detect newer versions where I have to perform an extra step to refresh the metadata for "Visual Studio Code".

@Bruce-Ferjulian
Copy link
Author

Bruce-Ferjulian commented Nov 22, 2024

Figured it out. The command to add the "Visual Studio Code' repository to a new system does not include the line "autorefresh=1" when creating the local metadata file.

The example how to add the repo looks like this and is missing the "autorefresh" flag, it would be nice if the instructions were updated and include the refresh flag.

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" |sudo tee /etc/zypp/repos.d/vscode.repo > /dev/null

@Bruce-Ferjulian
Copy link
Author

If you make the change then the step in the example to refresh can be removed and automated system updates will also work for VScode.

https://code.visualstudio.com/docs/setup/linux

Image

@rzhao271 rzhao271 transferred this issue from microsoft/vscode Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants