How can I update all Snap packages?
I know that I can update a snap package using
sudo snap refresh <package>
But there is a way to update all snaps, like
sudo apt dist-upgrade
ubuntu-core snap
add a comment |
I know that I can update a snap package using
sudo snap refresh <package>
But there is a way to update all snaps, like
sudo apt dist-upgrade
ubuntu-core snap
1
Since of snapd version 2.0.8 which is available in the ubuntu main repository now, the command sudo snap refresh updates all installed snap packages ! :)
– cl-netbox
Jun 14 '16 at 7:47
1
APT is good, it's comfortable and solid, but let's invent dozens of new formats AppImage, Span, Flatpak... this is really sad
– Salaros
May 6 '18 at 11:45
@Salaros but APT software packages don't get updates faster. Because of which new formats comes into the market. (Do u feel that?)
– Prabesh Bhattarai
Feb 27 at 16:27
add a comment |
I know that I can update a snap package using
sudo snap refresh <package>
But there is a way to update all snaps, like
sudo apt dist-upgrade
ubuntu-core snap
I know that I can update a snap package using
sudo snap refresh <package>
But there is a way to update all snaps, like
sudo apt dist-upgrade
ubuntu-core snap
ubuntu-core snap
edited May 10 '18 at 9:28
Zanna
51.2k13139242
51.2k13139242
asked Apr 22 '16 at 20:24
Alejandro VeraAlejandro Vera
1,32721218
1,32721218
1
Since of snapd version 2.0.8 which is available in the ubuntu main repository now, the command sudo snap refresh updates all installed snap packages ! :)
– cl-netbox
Jun 14 '16 at 7:47
1
APT is good, it's comfortable and solid, but let's invent dozens of new formats AppImage, Span, Flatpak... this is really sad
– Salaros
May 6 '18 at 11:45
@Salaros but APT software packages don't get updates faster. Because of which new formats comes into the market. (Do u feel that?)
– Prabesh Bhattarai
Feb 27 at 16:27
add a comment |
1
Since of snapd version 2.0.8 which is available in the ubuntu main repository now, the command sudo snap refresh updates all installed snap packages ! :)
– cl-netbox
Jun 14 '16 at 7:47
1
APT is good, it's comfortable and solid, but let's invent dozens of new formats AppImage, Span, Flatpak... this is really sad
– Salaros
May 6 '18 at 11:45
@Salaros but APT software packages don't get updates faster. Because of which new formats comes into the market. (Do u feel that?)
– Prabesh Bhattarai
Feb 27 at 16:27
1
1
Since of snapd version 2.0.8 which is available in the ubuntu main repository now, the command sudo snap refresh updates all installed snap packages ! :)
– cl-netbox
Jun 14 '16 at 7:47
Since of snapd version 2.0.8 which is available in the ubuntu main repository now, the command sudo snap refresh updates all installed snap packages ! :)
– cl-netbox
Jun 14 '16 at 7:47
1
1
APT is good, it's comfortable and solid, but let's invent dozens of new formats AppImage, Span, Flatpak... this is really sad
– Salaros
May 6 '18 at 11:45
APT is good, it's comfortable and solid, but let's invent dozens of new formats AppImage, Span, Flatpak... this is really sad
– Salaros
May 6 '18 at 11:45
@Salaros but APT software packages don't get updates faster. Because of which new formats comes into the market. (Do u feel that?)
– Prabesh Bhattarai
Feb 27 at 16:27
@Salaros but APT software packages don't get updates faster. Because of which new formats comes into the market. (Do u feel that?)
– Prabesh Bhattarai
Feb 27 at 16:27
add a comment |
3 Answers
3
active
oldest
votes
snap refresh
will do this. It is part of snapd
2.0.8, which landed 2016-06-13 in xenial-updates
.
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
10
snap refresh --list
only lists the updates without refreshes the packages
– gwarah
Jan 4 '18 at 14:15
22
oh how I hate ubuntu.refresh
... wtf guys, it's calledupgrade
.
– Evan Carroll
Jan 31 '18 at 1:41
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
add a comment |
According to Snap tutorial Snaps are automatically updated in the background once per day.
10
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
6
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
add a comment |
Try this in /usr/bin/update-snaps
:
#!/bin/bash
ROOT_UID="0"
#Check if run as root
if [ "$UID" -ne "$ROOT_UID" ] ; then
echo "You must be root to do that!"
exit 1
fi
snap list | awk -F" " '{if ($1 && NR>1) { system("snap refresh " $1 " 2>/dev/null") }}'
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
1
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
1
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f760823%2fhow-can-i-update-all-snap-packages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
snap refresh
will do this. It is part of snapd
2.0.8, which landed 2016-06-13 in xenial-updates
.
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
10
snap refresh --list
only lists the updates without refreshes the packages
– gwarah
Jan 4 '18 at 14:15
22
oh how I hate ubuntu.refresh
... wtf guys, it's calledupgrade
.
– Evan Carroll
Jan 31 '18 at 1:41
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
add a comment |
snap refresh
will do this. It is part of snapd
2.0.8, which landed 2016-06-13 in xenial-updates
.
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
10
snap refresh --list
only lists the updates without refreshes the packages
– gwarah
Jan 4 '18 at 14:15
22
oh how I hate ubuntu.refresh
... wtf guys, it's calledupgrade
.
– Evan Carroll
Jan 31 '18 at 1:41
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
add a comment |
snap refresh
will do this. It is part of snapd
2.0.8, which landed 2016-06-13 in xenial-updates
.
snap refresh
will do this. It is part of snapd
2.0.8, which landed 2016-06-13 in xenial-updates
.
edited Jun 14 '16 at 7:55
dholbach
1,364824
1,364824
answered Apr 25 '16 at 13:43
Zygmunt KrynickiZygmunt Krynicki
1,761167
1,761167
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
10
snap refresh --list
only lists the updates without refreshes the packages
– gwarah
Jan 4 '18 at 14:15
22
oh how I hate ubuntu.refresh
... wtf guys, it's calledupgrade
.
– Evan Carroll
Jan 31 '18 at 1:41
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
add a comment |
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
10
snap refresh --list
only lists the updates without refreshes the packages
– gwarah
Jan 4 '18 at 14:15
22
oh how I hate ubuntu.refresh
... wtf guys, it's calledupgrade
.
– Evan Carroll
Jan 31 '18 at 1:41
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Isn't that for resfresh a package? Or it will update everything is a snap is not specified?
– Alejandro Vera
Apr 26 '16 at 2:37
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
Is it implemented now?
– JulianLai
May 18 '16 at 8:31
10
10
snap refresh --list
only lists the updates without refreshes the packages– gwarah
Jan 4 '18 at 14:15
snap refresh --list
only lists the updates without refreshes the packages– gwarah
Jan 4 '18 at 14:15
22
22
oh how I hate ubuntu.
refresh
... wtf guys, it's called upgrade
.– Evan Carroll
Jan 31 '18 at 1:41
oh how I hate ubuntu.
refresh
... wtf guys, it's called upgrade
.– Evan Carroll
Jan 31 '18 at 1:41
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
This command just hangs. I check processes and it is sleeping...wtf?
– smac89
Mar 5 at 23:44
add a comment |
According to Snap tutorial Snaps are automatically updated in the background once per day.
10
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
6
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
add a comment |
According to Snap tutorial Snaps are automatically updated in the background once per day.
10
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
6
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
add a comment |
According to Snap tutorial Snaps are automatically updated in the background once per day.
According to Snap tutorial Snaps are automatically updated in the background once per day.
answered May 10 '18 at 3:40
chrisvdbchrisvdb
365212
365212
10
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
6
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
add a comment |
10
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
6
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
10
10
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
whoever thought this was good solution is wrong.
– user140345
Dec 1 '18 at 22:17
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
Elaborate on you comment, please.
– chrisvdb
Dec 2 '18 at 2:03
6
6
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
It means that a program which works yesterday may not work today, also that it cost me lots of money to do the update because my laptop was tethered by mobile at the time, and also that my system died on me during the update because I was using the package being updated at the time.
– David Given
Jan 13 at 23:21
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
@DavidGiven I agree with your point. I thought 'solution' in the earlier comment referred to my answer (which is factual), but it refers to the actual technical solution provided by Ubuntu.
– chrisvdb
Jan 16 at 3:51
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
I think that might work. My PhpStorm is updated automatically (in background) whenever there is new update.
– Rajesh K. Chaudhary
Feb 16 at 15:28
add a comment |
Try this in /usr/bin/update-snaps
:
#!/bin/bash
ROOT_UID="0"
#Check if run as root
if [ "$UID" -ne "$ROOT_UID" ] ; then
echo "You must be root to do that!"
exit 1
fi
snap list | awk -F" " '{if ($1 && NR>1) { system("snap refresh " $1 " 2>/dev/null") }}'
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
1
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
1
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
add a comment |
Try this in /usr/bin/update-snaps
:
#!/bin/bash
ROOT_UID="0"
#Check if run as root
if [ "$UID" -ne "$ROOT_UID" ] ; then
echo "You must be root to do that!"
exit 1
fi
snap list | awk -F" " '{if ($1 && NR>1) { system("snap refresh " $1 " 2>/dev/null") }}'
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
1
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
1
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
add a comment |
Try this in /usr/bin/update-snaps
:
#!/bin/bash
ROOT_UID="0"
#Check if run as root
if [ "$UID" -ne "$ROOT_UID" ] ; then
echo "You must be root to do that!"
exit 1
fi
snap list | awk -F" " '{if ($1 && NR>1) { system("snap refresh " $1 " 2>/dev/null") }}'
Try this in /usr/bin/update-snaps
:
#!/bin/bash
ROOT_UID="0"
#Check if run as root
if [ "$UID" -ne "$ROOT_UID" ] ; then
echo "You must be root to do that!"
exit 1
fi
snap list | awk -F" " '{if ($1 && NR>1) { system("snap refresh " $1 " 2>/dev/null") }}'
edited Feb 22 at 3:29
Pablo Bianchi
3,04521536
3,04521536
answered Apr 24 '16 at 9:35
carloscarlos
471
471
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
1
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
1
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
add a comment |
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
1
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
1
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
thanks. I know I can write a script, but I wanted the "native" solution, the way for "human beings" :D... I did not vote you down..
– Alejandro Vera
Apr 26 '16 at 2:37
1
1
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
Thanks for that! It's annoying that snap doesn't have this built-in yet (esp. since 16.04 is an LTS) but your one-liner with awk nicely works around that limitation. Doesn't deserve a downvote at all!
– happyskeptic
May 2 '16 at 9:28
1
1
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
This is not necessary any more.
– dholbach
Jun 14 '16 at 7:11
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
it is fixed now? I can refresh all my snaps with one command?
– Alejandro Vera
Jun 14 '16 at 14:13
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f760823%2fhow-can-i-update-all-snap-packages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Since of snapd version 2.0.8 which is available in the ubuntu main repository now, the command sudo snap refresh updates all installed snap packages ! :)
– cl-netbox
Jun 14 '16 at 7:47
1
APT is good, it's comfortable and solid, but let's invent dozens of new formats AppImage, Span, Flatpak... this is really sad
– Salaros
May 6 '18 at 11:45
@Salaros but APT software packages don't get updates faster. Because of which new formats comes into the market. (Do u feel that?)
– Prabesh Bhattarai
Feb 27 at 16:27