Score:3

How to update a program based on a downloaded file

br flag

I want to update VS code without updating all applications. And I want to do it through terminal By the downloaded file of newest version.

can I somehow introduce the file.deb in my memory as the source of the update?

I'm using Ubuntu 20.04. Thank you All!

Score:5
us flag

There are several ways.

  • Install the gdebi installer for .deb files.

    sudo apt install gdebi
    

    Then open the .deb file with gdebi to install it.

  • Open a terminal in the directory containing the .deb package, and install it directly with apt.

    sudo apt install ./filename.deb
    

Later on, to update the software database,

sudo apt update

Then, you can update the whole system with sudo apt dist-upgrade, or selectively upgrade vscode with sudo apt install code

Sir-Sorg avatar
br flag
OK its so good but a question : I have this app right now so if i `install` it -> its automatically be update ?
us flag
According to https://code.visualstudio.com/docs/setup/linux, the .deb package will automatically add its repository to the system, and afterwards, you can update it through the package manager like any other software.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.