LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-21-2020, 08:20 PM   #1
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
My Opensuse give wrong package info for golang.


I am running OpenSuse Leap 15.1.
I want to update my go programming language pacage from 1.11 to the latest what the repo have.
But the system said it's already updated the go package where in fact it's not.

Code:
# zypper refresh; zypper update go
Repository 'Visual Studio Code' is up to date.                                                                                        
Repository 'dbserver' is up to date.                                                                                                  
Repository 'libdvdcss' is up to date.                                                                                                 
Repository 'openSUSE-Leap-15.1-1' is up to date.                                                                                      
Repository 'packman' is up to date.                                                                                                   
Repository 'Non-OSS Repository' is up to date.                                                                                        
Repository 'Main Repository' is up to date.                                                                                           
Repository 'Main Update Repository' is up to date.                                                                                    
Repository 'Update Repository (Non-Oss)' is up to date.                                                                               
Repository 'Databases (openSUSE_Leap_15.1)' is up to date.                                                                            
Repository 'snappy' is up to date.                                                                                                    
All repositories have been refreshed.
Loading repository data...
Reading installed packages...
No update candidate for 'go-1.12-lp151.2.3.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
Code:
#zypper info go
Loading repository data...
Reading installed packages...

Information for package go:
---------------------------
Repository     : Main Update Repository                                        
Name           : go                                                            
Version        : 1.12-lp151.2.3.1                                              
Arch           : x86_64                                                        
Vendor         : openSUSE                                                      
Installed Size : 82 B                                                          
Installed      : Yes                                                           
Status         : up-to-date                                                    
Source package : go-1.12-lp151.2.3.1.src                                       
Summary        : A compiled, garbage-collected, concurrent programming language
Description    : ...
Code:
# go version
go version go1.11.13 linux/amd64
Anyone knows what's the best solution for this?
Thank you
 
Old 02-21-2020, 11:30 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Code:
# sudo zypper se -s go | egrep 'go1.10.|go1.11.|go1.12.' | egrep -v 'doc|race|32b|src'
   | go1.10                                           | package    | 1.10.8-lp151.1.1                          | x86_64 | OSS
   | go1.11                                           | package    | 1.11.13-lp151.2.9.1                       | x86_64 | Update
   | go1.11                                           | package    | 1.11.10-lp151.2.6.10                      | x86_64 | Update
   | go1.11                                           | package    | 1.11.9-lp151.2.3.1                        | x86_64 | Update
   | go1.11                                           | package    | 1.11.5-lp151.1.12                         | x86_64 | OSS
   | go1.12                                           | package    | 1.12.12-lp151.2.25.1                      | x86_64 | Update
   | go1.12                                           | package    | 1.12.9-lp151.2.21.1                       | x86_64 | Update
   | go1.12                                           | package    | 1.12.9-lp151.2.17.1                       | x86_64 | Update
   | go1.12                                           | package    | 1.12.9-lp151.2.13.1                       | x86_64 | Update
   | go1.12                                           | package    | 1.12.9-lp151.2.9.1                        | x86_64 | Update
   | go1.12                                           | package    | 1.12.6-lp151.2.6.1                        | x86_64 | Update
   | go1.12                                           | package    | 1.12.4-lp151.2.3.1                        | x86_64 | Update
   | go1.12                                           | package    | 1.12.2-lp151.1.1                          | x86_64 | OSS
Go versioning seems to be rather unusual, but
Code:
sudo zypper rm go1.11
sudo zypper in go1.12
ought to fix you up.
 
1 members found this post helpful.
Old 02-22-2020, 10:31 PM   #3
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
You can install differnet Versions and switch with update-alternatives to the one, you want to use
Code:
update-alternatives --config go 
There are 2 choices for the alternative go (providing /usr/bin/go).

  Selection    Path                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib64/go/1.7/bin/go   30        auto mode
  1            /usr/lib64/go/1.7/bin/go   30        manual mode
  2            /usr/lib64/go/1.8/bin/go   30        manual mode

Press <enter> to keep the current choice[*], or type selection number:
 
Old 02-25-2020, 05:00 AM   #4
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by mrmazda View Post
Go versioning seems to be rather unusual, but
Code:
sudo zypper rm go1.11
sudo zypper in go1.12
ought to fix you up.
Got it. I use this solution. Thanks alot
 
Old 02-25-2020, 05:35 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Thnak you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
LXer: Golang to the rescue: Saving DevOps from TLS turmoil LXer Syndicated Linux News 0 04-05-2017 04:10 PM
LXer: IBM flexible mainframes with Golang, Mozilla keeps FireFox OS in play for IoT, and more news LXer Syndicated Linux News 0 01-19-2016 10:14 PM
LXer: code churning and golang LXer Syndicated Linux News 0 11-03-2014 01:41 PM
Setting Environment Variables for Google GoLang vital_101 Ubuntu 1 11-12-2009 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration