wget and Pacman in Arch linux
Although I use Gentoo as my Primary desktop distro, I also have an Arch Linux machine. I use it for hand off kinda things. Skype, IM , Network Monitoring to name a few. Recently, my ISP has been suckish (Comcast, they’re Craptastic!) and it’s affected pacman in that pacman hangs during caching and downloading the packages. This has really been a pisser. Ctl+C to stop pacman, then rm -rf /var/lib/pacman/db.lck to remove the lock file then start over. Sometimes several times. AARRRGGHHHH!!!
Enter RTFM !! Read the Fuking Manual!! The Man pages are your friend !!!
It seems that you can change the settings in /etc/pacman.conf to use wget! If you don’t know; wget rocks ! Its a fast light command line transfer application but, I digress, that is for another post, another day.
so, su -c 'vi /etc/pacman.conf'
Locate the line “XferCommand = ” in pacman.conf (It’s probably commented out)
Change this line to read: Xfercommand = /usr/bin/wget -t 3 -T 30 -c -O %o %u
This line all ready exists but there are two additional flags to add to it. The -t 3 and -T 30. These options set a timeout and a retry setting.
That does it for me. Although it does still get stuck on downloads that take longer than 5 mintes, it automatically restarts itself after 30 seconds and is able to continue on. And, I like the way wget looks when it is working!
Happy Slackin !
Popularity: 31% [?]
Subscribes
Be Social
Archives
ISC Security feed
- Infocon: greenUS Department of Defense and National Policy […]
- US Department of Defense and National Policy, (Sun, Sep 5th)A recent article released by the US Department of Defense (DoD) spoke of the worst compromise in DoD ...(more)... […]
- What's not to Like about "Like?", (Sat, Sep 4th)Get off of my lawn! I admidt that I have a suspicous, curmedgeonly strea ...(more)... […]
- Investigating Malicious Website Reports, (Sat, Sep 4th)This morning we received a report from Holger about a website that was triggering ale ...(more)... […]
- Apple Releases Two Security Updates (One for OSX, One for iTunes) : http://support.apple.com/kb/HT4312 and http://support.apple.com/kb/HT4328, (Fri, Sep 3rd)...(more)... […]
- Microsoft EMETv2 released, (Thu, Sep 2nd)Today, Microsoft released a new version of their Enhanced Mitigation Experience Toolkit. ...(more)... […]
- SDF, please!, (Thu, Sep 2nd)We're under a targeted malware attack!, a friend of mine yelled into the phone. We ...(more)... […]
- Month of Undisclosed 0-day Bugs, (Wed, Sep 1st)As a heads up, the Exploit Database (exploit-db.com) is publish a month of undisclosed 0day bugs fro ...(more)... […]
- Microsoft issues updates to sysinternals ProcDump and Process Monitor: http://blogs.technet.com/b/sysinternals/archive/2010/08/30/updates-procdump-process-monitor-and-a-new-mark-s-blog-post.aspx, (Wed, Sep 1st)...(more)... […]
- VMWARE releases 2 security advisories for ESX Service Console: http://lists.vmware.com/pipermail/security-announce/2010/000103.html and http://lists.vmware.com/pipermail/security-announce/2010/000104.html, (Wed, Sep 1st)...(more)... […]
- Infocon: green
Tags
- "operating systems" apps Blog chat client command line commands Computers design desktop Development fluxbox Geeks gentoo government Hardware how to Internet IRC Linux management network networking News package personal politics program prostitution review security server servers social network SSH systems taxes terminal text Tips Top 10 Tutorials twitter web wondow managers




You can use -nv option in wget command line if you want a display similar as default :
$ yaourt -Syu –aur
:: Synchronisation des bases de donnĂ©es de paquets…
2009-09-09 12:47:11 URL: ftp://ftp.free.fr/mirrors/ftp.archlinux.org/testing/os/x86_64/testing.db.tar.gz [13045] -> “/var/lib/pacman/testing.db.tar.gz.part” [1]
2009-09-09 12:47:12 URL: ftp://ftp.free.fr/mirrors/ftp.archlinux.org/core/os/x86_64/core.db.tar.gz [34311] -> “/var/lib/pacman/core.db.tar.gz.part” [1]
2009-09-09 12:47:13 URL: ftp://ftp.free.fr/mirrors/ftp.archlinux.org/extra/os/x86_64/extra.db.tar.gz [431798] -> “/var/lib/pacman/extra.db.tar.gz.part” [1]
2009-09-09 12:47:14 URL: ftp://ftp.free.fr/mirrors/ftp.archlinux.org/community/os/x86_64/community.db.tar.gz [379547] -> “/var/lib/pacman/community.db.tar.gz.part” [1]
2009-09-09 12:47:15 URL:http://repo.archlinux.fr/x86_64/archlinuxfr.db.tar.gz [24800/24800] -> “/var/lib/pacman/archlinuxfr.db.tar.gz.part” [1]