Hi,
How can I hold any snap applicattion of updating?
I'd like to apply the equivalen for snaps of:
sudo apt-mark hold <<application>>
Thanks.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
snap refresh --time
timer: 00:00~24:00/4
last: yesterday at 19:30 CET
hold: in 59 days, at 20:30 CEST
next: today at 05:41 CET (but held)
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
snap refresh --revision=$version $package
Head_on_a_Stick wrote:How about
- Code: Select all
snap refresh --revision=$version $package
But you would have to repeat that every time the snaps are updated.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
bester69 wrote:what does it do, put current version to $revision?
Head_on_a_Stick wrote:bester69 wrote:what does it do, put current version to $revision?
I think so, yes. I'm just going from the man page. I don't use snap packages.
#!/bin/bash
clear
#Hold 60 días
sudo snap set system refresh.hold="2029-04-23T17:22:54+01:00"
snap refresh --time
sudo chattr +i /snap/opera/
sleep 3
snap list | awk -F" " '{if ($1 && NR>1) { system("sudo snap refresh " $1 "") }}'
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
if [ "$snapname" == "opera" ]
then
:
else
sudo snap remove "$snapname" --revision="$revision"
fi
done
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
Head_on_a_Stick wrote:I think so, yes. I'm just going from the man page. I don't use snap packages.
sunrat wrote:Head_on_a_Stick wrote:I think so, yes. I'm just going from the man page. I don't use snap packages.
Snap is the COVID-19 of Debian IMHO. Don't forget to wash your hands.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
bester69 wrote:but I belong to old school mind, you know, just imagine how millons people lived like that in recent past, and nothing happend to them.. neither believe in climatic change and stuff like that.. thay're all patrañas and lies and mk-ultra throught tv news
excert from link wrote:The death toll is estimated to have been anywhere from 17 million to 50 million, and possibly as high as 100 million, making it one of the deadliest epidemics in human history
bester69 wrote:dont believe very much in invisible things
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
/snap/opera$ ls -l
total 4
drwxr-xr-x 1 root root 0 feb 25 15:20 66
drwxr-xr-x 11 root root 144 mar 2 22:36 67
lrwxrwxrwx 1 root root 2 mar 7 03:59 current -> 67
#!/bin/bash
clear
#Hold 60 días
sudo snap set system refresh.hold="2029-04-23T17:22:54+01:00"
snap refresh --time
sudo chattr +i /var/lib/snapd/snaps/opera_67.snap
sudo chattr +i /snap/opera/
sleep 3
snap list | awk -F" " '{if ($1 && NR>1) { system("sudo snap refresh " $1 "") }}'
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
if [ "$snapname" == "opera" ]
then
:
else
sudo snap remove "$snapname" --revision="$revision"
fi
done
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
Return to System configuration
Users browsing this forum: No registered users and 14 guests