Author Topic: canceling an update manager session  (Read 910 times)

0 Members and 1 Guest are viewing this topic.

Offline curtvaughan

  • Neuling
  • *
  • Posts: 7
  • Branch: stable
  • Desktop: Xfce 4.12.3
  • Kernel: 4.4.8-1-MANJARO x86_64
  • Skill: Novice
canceling an update manager session
« on: 28. March 2016, 00:36:07 »
Okay. After having to do a new install of Manjaro after a corrupted grub made my previous installation unbootable, I'm having to go through the initial 822.9 MB of updates and patches. This will, and in the past, has taken around 2 hours to accomplish. Being on a laptop in a public place, it would  be nice to be able to suspend the downloads and resume them at a later time, but I'm reluctant to hit the "cancel" button and have to start all over again when I resume the process. This is a question I could answer myself via trial-and-error / hard knocks, but can someone let me know: if I cancel the update downloads and re-execute later, will the downloads/updates resume where I left off, or will it start all over again? Inquiring minds, et al.  Thanks!
Move from Rim to Hub; know the Wheel.

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: canceling an update manager session
« Reply #1 on: 28. March 2016, 00:41:23 »
Maybe, not reinstalling but try to repair Grub https://wiki.manjaro.org/index.php?title=Restore_the_GRUB_Bootloader

Otherwise you can come of the updates to run and others not. There are checkboxes in Octopi and Pamac. But be careful about dependencies...
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline c00ter

  • Held Mitglied
  • *****
  • Posts: 1534
  • Towelie's cupcake
  • Branch: ☮Olive☮
  • Desktop: Depends©
  • GPU Card: Intel HD4400M CPU: Core i7-4510U
  • GPU driver: Intel/Free
  • Kernel: 4.4-lts & 4.5
  • Skill: Novice
Re: canceling an update manager session
« Reply #2 on: 28. March 2016, 01:00:50 »
Not that I am aware of.

Regards
“What, me worry?” ― Alfred E. Newman

Manjaro Wiki: https://wiki.manjaro.org/
Arch Wiki: https://wiki.archlinux.org/
Pacman Rosetta: https://wiki.archlinux.org/index.php/Pacman/Rosetta

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: canceling an update manager session
« Reply #3 on: 28. March 2016, 04:24:03 »
partial downloads will be resumed, assuming there is no change on the server side, by curl (default backend). Look for .part files (partially downloaded packages) in /var/cache/pacman/pkg.
If you use Xfer=wget, use --continue .
If you use Xfer=aria2c, use --continue=true .

You may cancel when downloading. But -Never- cancel when installing/upgrading :)
« Last Edit: 28. March 2016, 04:27:24 by badbodh »
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline c00ter

  • Held Mitglied
  • *****
  • Posts: 1534
  • Towelie's cupcake
  • Branch: ☮Olive☮
  • Desktop: Depends©
  • GPU Card: Intel HD4400M CPU: Core i7-4510U
  • GPU driver: Intel/Free
  • Kernel: 4.4-lts & 4.5
  • Skill: Novice
Re: canceling an update manager session
« Reply #4 on: 28. March 2016, 05:02:55 »
partial downloads will be resumed, assuming there is no change on the server side, by curl (default backend). Look for .part files (partially downloaded packages) in /var/cache/pacman/pkg.
If you use Xfer=wget, use --continue .
If you use Xfer=aria2c, use --continue=true .

You may cancel when downloading. But -Never- cancel when installing/upgrading :)

Excellent! So now we know the answer is "Yes, but with provisions."

Adding to what others have said, if you use wget, I believe a slight alteration in pacman.conf, uncommenting the line beginning with "#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u" may also help. I believe that helped me d/l and install Deepin, back a couple years ago when it was still in an unofficial repo...may be worth checking out, but please verify for yourself. Been a while. :)

Regards
“What, me worry?” ― Alfred E. Newman

Manjaro Wiki: https://wiki.manjaro.org/
Arch Wiki: https://wiki.archlinux.org/
Pacman Rosetta: https://wiki.archlinux.org/index.php/Pacman/Rosetta

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: canceling an update manager session
« Reply #5 on: 28. March 2016, 08:25:26 »
my xfers, just uncomment and use :)
Code: [Select]
## XferCommand = /usr/bin/wget --quiet --show-progress --passive-ftp -c -O %o %u
## XferCommand = /usr/bin/aria2c --allow-overwrite=true --continue=true --file-allocation=none --log-level=error --max-tries=3 --max-connection-per-server=16 --max-file-not-found=5 --min-split-size=1M --split=16 --no-conf --remote-time=true --summary-interval=0 --timeout=5 --dir=/ --out %o %u

wget: added progressbar, -c means --continue so whatever part you downloaded is saved.
aria2c: few options added to squeeze out some serious download speed. This is my default.
« Last Edit: 28. March 2016, 08:28:27 by badbodh »
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !