0

Sorry I'm a Linux n00b.

I have version 1.9.5 of Solana running in Ubuntu (a new VM).

I thought:

sudo apt update

and

sudo apt upgrade

would update all the installed packages in Linux, but when I run these then type 'Solana --version' into the Terminal it still shows 1.9.5 - an old version.

Sorry I'm new to Linux, I've searched a lot on Google but I just find the above commands without explaining the problem here.

How can I update all packages and how do I update an individual one - including Solana here?

Is Solana (and is every app in Linux) installed via a package that's upated with sudo apt update?

Thanks

3
  • sorry i typed 'ubuntu' in the tags and it replaced it with 14.04. I guess 22.04 is latest? I'll fix the tag.
    – niico
    Commented Aug 10, 2022 at 11:44
  • 1
    How did you install Solana?
    – FedKad
    Commented Aug 10, 2022 at 12:17
  • "Is Solana (and is every app in Linux) installed via a package that's upated with sudo apt update?" No. There are a dozen ways to install software. Some are easy. Some are hard. Apt is most common, but used for but a single one of those dozen methods -- the use of deb packages. Apt cannot see or affect any of the others. Hence @FedKad's very reasonable question.
    – user535733
    Commented Aug 10, 2022 at 12:37

1 Answer 1

1

Default Apt packages incuded with Ubuntu are limited to the current stable release at the time your Ubuntu version is released. 14.04 is quite old now so the apt package incuded is likely out of date.

Assuming I have the right software, Solana's documentation lists alternate installation methods here

Essentially just run this command and it will run through the install script sh -c "$(curl -sSfL https://release.solana.com/v1.10.32/install)"

10
  • Thanks Does that command install a package? Are packages the only way to install things in Linux? If it's a package can't I just use apt update? Sorry for n00b questions.
    – niico
    Commented Aug 10, 2022 at 11:42
  • 1
    @niico you're living in the future! 22.04 is the latest Ubuntu version currently. Apt packages are not the only way to install softare in Linux, Ubuntu also uses a system called Snap, there is also AppImage, Flatpak etc. Some software run their own install scripts that just copies files around which amounts to installation, looking briefly at the Solana installer I think this is what that script does.
    – Baa
    Commented Aug 10, 2022 at 12:27
  • 1
    @niico Normally running sudo apt update and sudo apt upgrade would install the latest version of all software provided by apt packages, this might not always be the latest version of the software available and sometimes if you visit the software's website they will give an alternate install method. Solana isn't providing an Apt Package for their software so it's up to them on how their software is updated and whether they supply a method of installing the latest version or if you just have to provide a specific version each time.
    – Baa
    Commented Aug 10, 2022 at 12:29
  • 1
    Sorry meant to type 22.04
    – niico
    Commented Aug 11, 2022 at 10:50
  • 1
    @niico yes you are correct, Apt is optional and one of many installation methods on Linux, it's very popular for Debian-based operating systems like Ubuntu.
    – Baa
    Commented Aug 11, 2022 at 11:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .