How to Update Snap in Linux

Photo of author

By Oluwaseun Bamisile

Published

Do you want to update snap packages or applications on your Ubuntu Linux-based computer but don’t know how? This article teaches multiple ways to accomplish that.

Before you proceed, you should know that the procedures in this guide were all carried out on the Ubuntu 22.04 LTS Linux-based operating system. Hence, the procedures may differ slightly on other versions of the Ubuntu Linux-based OS.

Option 1: Upgrade Snap via Terminal

You can install snap applications on your Ubuntu Linux-based computer using the snap command in the terminal. Thus, using this same command, you can also update snap applications through the terminal.

Hence, in the first sub-section below, you will learn how to update all the snap packages on your Ubuntu Linux-based computer through the terminal. Meanwhile, I will teach you how to update a specific snap package on your Ubuntu Linux computer through the terminal in the second sub-section.

Patch All Snap Installations

  1. Right-click any free area on your Ubuntu desktop, then left-click Open in Terminal from the displayed options.
  1. When the terminal opens, run the command below to update all the snap packages on your Linux computer. However, before the command executes, you will be prompted to input your password – do that and press the enter key.
sudo snap refresh
While inputting your computer’s password, the characters won’t be visible
Update Snap In Linux Via Terminal

Patch A Specific Snap Installation

  1. Right-click a free area on your Ubuntu desktop and click Open in Terminal from the options that display.
  1. After that, to patch the snap installation, enter the command below in the terminal and press the enter key on your keyboard. However, replace “snapname” with the exact name of the snap package you want to update.
sudo snap refresh snapname

For instance, if I want to update the Firefox snap package on my Ubuntu computer, below is what the command should look like.

sudo snap refresh firefox
Update Snap In Linux Via Terminal
  1. Following that, you will be prompted to input the password of your computer. Hence, input your password and press the enter key to start updating the snap package.
While inputting your password in the terminal, the characters won’t be visible.

Option 2: Upgrade Snap Through the Ubuntu Software Center

In case you don’t know, every application on the Ubuntu Software Center is from the snap store. So, basically, they are all snap packages or applications.

In fact, even if you install a snap application through the terminal, it will still appear on the Ubuntu Software Center. Hence, it’s no surprise you can update snap packages or applications on your Ubuntu Linux-based computer through the Ubuntu Software Center.

To accomplish that, carefully observe the procedures and screenshot images provided below.

  1. Click the Show Applications button on your Ubuntu dock. Then, type “ubuntu software” in the search field and select the Ubuntu Software Center icon from the search result.
Update Snap In Linux Through Ubuntu Software Center
  1. When the Ubuntu Software Center opens, switch to the Updates tab to view snap packages or apps with available updates.
  1. In the Updates tab, click the green Update All button to update all the snap applications on the list. Alternatively, click the Update button opposite an application to update that specific snap application – see the second screenshot.
Update Snap In Linux Through Ubuntu Software Center
  1. Consequently, you will receive a prompt asking for authentication before updating the snap package(s). Hence, input your computer’s password in the prompt and click the Authenticate button to proceed.
Update Snap In Linux Through Ubuntu Software Center

Frequently Asked Questions

1. How to view all Snaps in Ubuntu?

One way to view all the snap applications installed on your computer is through the terminal. Follow the steps below to do that.
a) Open the terminal on your Ubuntu computer by right-clicking any free space on the desktop and selecting Open in Terminal from the displayed options.
b) When the terminal opens, input “snap list” and press the enter key on your keyboard.
c) Hence, every snap application installed on your Ubuntu computer will be displayed alongside their versions and publishers.

2. What is a Snap?

Snaps are packages or applications on the Linux operating system from the snap store or snap package manager. Furthermore, they can be installed through the Ubuntu Software Center or using the snap command in the terminal.

Moreover, they are more flexible and secure than other package types on the Linux operating system. Besides, snaps packages are developed to work across a wide range of Linux distributions.

Thereby making it easier for developers to distribute their applications or software to a wide range of Linux users.

3. Are Snap packages free in Ubuntu?

Yes, snap packages are free for download in the Ubuntu Linux-based operating system.

4. How do I update a Snap in the Ubuntu Software Center?

Follow the procedures below to update a snap via the Ubuntu Software Center.
a) Click the Show Applications button on your Ubuntu dock.
b) Then, type “ubuntu software” in the search field and select the Ubuntu Software Center icon from the search result.
c) When the Ubuntu Software Center opens, switch to the Updates tab to view snap packages with available updates.
d) Next, click the Update button opposite the snap application you want to update.
e) Finally, input your computer’s password in the prompt that appears and click the Authenticate button to update the snap.

5. What is the latest version of Ubuntu?

The latest version of the Ubuntu Linux-based operating system is Ubuntu 22.10, which is nicknamed Kinetic Kudu.

Conclusion

Snaps are secure and flexible applications or packages from the snap store in the Linux operating system. Additionally, they can be installed using the snap command in the terminal or through the Ubuntu Software Center.

Although most people know how to install snaps in Linux, not all know how to upgrade or patch snaps. Gladly, this guide demonstrates multiple ways to accomplish that.

To be more specific, this guide taught us two ways to update snap packages or applications on the Ubuntu Linux-based operating system. Hence, we learned how to perform this task through the terminal and the Ubuntu Software Center.

Hopefully, this guide was helpful to you. If it was, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Reply” form at the bottom of this page.

To get more helpful Linux how-to guides, visit our Linux how-to page.

About the Author

Photo of author

Oluwaseun Bamisile

Oluwaseun is the Lead Content Editor at Itechguides.com. He holds a National Diploma in Computer Science (currently studying part-time for his Higher National Diploma). An internet geek with a love for automobiles, he writes product reviews, tech articles, and how-to guides on the site.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend