You are not logged in.

#1 2017-09-23 23:15:58

kevdog
Member
Registered: 2013-01-26
Posts: 102

Can't upgrade with Pacaur/Pacman passing a list to packages to functio

Perhaps I'm way off base here.

I'm generating a list of packages needing upgrade via pacaur:

$ pacaur -Qu
:: aur  acroread                        9.5.5-6              ->  9.5.5-7             
:: aur  android-google-repository       r26-1                ->  r53-1               
:: aur  android-platform                23_r03-1             ->  26_r02-1            
:: aur  android-sdk                     25.1.7-1             ->  26.0.2-2            
:: aur  android-sdk-build-tools         r23.0.3-1            ->  r26.0.1-1           
:: aur  android-sdk-platform-tools      r23.1.0-4            ->  r26.0.0-1           
:: aur  android-studio                  2.1.1.0-1            ->  2.3.3.0-1           
:: aur  android-support-repository      r32-1                ->  r47-1               
:: aur  avogadro                        1.1.1-9              ->  1.2.0-5             
:: aur  clean-chroot-manager            2.79-1               ->  2.87-1              
:: aur  cower                           16-1                 ->  17-2                
:: aur  debtap                          2.8-1                ->  3.1.4-2             
:: aur  dropbox                         3.20.1-1             ->  35.4.20-1           
:: aur  eclipse-emf                     2.11.1-1             ->  2.12.0-2            
:: aur  gcc-gcj-ecj                     4.9-1                ->  4.9-4               
:: aur  google-chrome                   51.0.2704.63-1       ->  61.0.3163.100-1     
:: aur  grive                           0.5.0-2              ->  0.5.0-8             
:: aur  gstreamer0.10                   0.10.36-4            ->  0.10.36-16          
:: aur  gstreamer0.10-base              0.10.36-3            ->  0.10.36-9           
:: aur  gstreamer0.10-base-plugins      0.10.36-3            ->  0.10.36-9           
:: aur  insync                          1.3.8-2              ->  1.3.17-1            
:: aur  jquery                          2.2.4-1              ->  3.2.1-1             
:: aur  kdebase-workspace               4.11.22-4            ->  4.11.22-5           
:: aur  libavutil-52                    2.3.4-1              ->  2.3.6-3             
:: aur  ncurses5-compat-libs            6.0-3                ->  6.0+20170902-1      
:: aur  netatalk                        3.1.8-1              ->  3.1.11-1            
:: aur  obnam                           1.19-1               ->  1.22-1              
:: aur  otf-fira-code-git               1.102.r1.g30b36e2-1  ->  latest              
:: aur  pacaur                          4.6.4-1              ->  4.7.10-1            
:: aur  package-query                   1.8-2                ->  1.9-2               
:: aur  pdftk                           2.02-9               ->  2.02-17             
:: aur  python-path                     8.2.1-1              ->  10.4-1              
:: aur  python2-cliapp-git              575.0b7d3ec-1        ->  latest              
:: aur  qtwebkit                        2.3.4-4              ->  2.3.4-5             
:: aur  strigi                          0.7.8-9              ->  0.7.8-10            
:: aur  tor-browser-en                  5.5.5-1              ->  7.0.5-1             
:: aur  ttf-mac-fonts                   1-7                  ->  20100901.134-1      
:: aur  ttf-noto-fonts-emoji-ib         20150929-2           ->  20170310-1          
:: aur  vivaldi-snapshot                1.2.490.27-1         ->  1.13.966.3-1        
:: aur  vivaldi-snapshot-ffmpeg-codecs  51.0.2704.43-1       ->  61.0.3163.91-1      
:: aur  webkitgtk                       2.4.11-1             ->  2.4.11-6            
:: aur  xf86-input-mtrack-git           0.4.0.r2.g04c222e-1  ->  latest              
:: aur  yaourt                          1.8.1-1              ->  1.9-1   

So this is what I planned:

$ pacaur -Qu | awk '{print $3}' > pkglist

I then planned on passing the list to pacaur like this:

$ cat pkglist | xargs pacaur -S

This however is what I get for the output:

$ cat filelist | xargs pacaur -S 
grep: /dev/fd/63:1: Unmatched [ or [^
grep: /dev/fd/63:2: Unmatched [ or [^
grep: /dev/fd/63:3: Unmatched [ or [^
grep: /dev/fd/63:4: Unmatched [ or [^
grep: /dev/fd/63:5: Invalid range end
grep: /dev/fd/63:6: Unmatched [ or [^
grep: /dev/fd/63:7: Unmatched [ or [^
grep: /dev/fd/63:8: Invalid range end
grep: /dev/fd/63:9: Unmatched [ or [^
grep: /dev/fd/63:10: Invalid range end
grep: /dev/fd/63:11: Unmatched [ or [^
grep: /dev/fd/63:12: Unmatched [ or [^
grep: /dev/fd/63:13: Unmatched [ or [^
grep: /dev/fd/63:14: Unmatched [ or [^
grep: /dev/fd/63:15: Invalid range end
grep: /dev/fd/63:16: Invalid range end
grep: /dev/fd/63:17: Unmatched [ or [^
grep: /dev/fd/63:18: Unmatched [ or [^
grep: /dev/fd/63:19: Unmatched [ or [^
grep: /dev/fd/63:20: Unmatched [ or [^
grep: /dev/fd/63:21: Unmatched [ or [^
grep: /dev/fd/63:22: Unmatched [ or [^
grep: /dev/fd/63:23: Unmatched [ or [^
grep: /dev/fd/63:24: Invalid range end
grep: /dev/fd/63:25: Invalid range end
grep: /dev/fd/63:26: Unmatched [ or [^
grep: /dev/fd/63:27: Unmatched [ or [^
grep: /dev/fd/63:28: Unmatched [ or [^
grep: /dev/fd/63:29: Unmatched [ or [^
grep: /dev/fd/63:30: Unmatched [ or [^
grep: /dev/fd/63:31: Unmatched [ or [^
grep: /dev/fd/63:32: Unmatched [ or [^
grep: /dev/fd/63:33: Invalid range end
grep: /dev/fd/63:34: Unmatched [ or [^
grep: /dev/fd/63:35: Unmatched [ or [^
grep: /dev/fd/63:36: Invalid range end
grep: /dev/fd/63:37: Unmatched [ or [^
grep: /dev/fd/63:38: Invalid range end
grep: /dev/fd/63:39: Unmatched [ or [^
grep: /dev/fd/63:40: Invalid range end
grep: /dev/fd/63:41: Unmatched [ or [^
grep: /dev/fd/63:42: Invalid range end
grep: /dev/fd/63:43: Unmatched [ or [^
:: Package(s) acroread android-google-repository android-platform android-sdk android-sdk-build-tools android-sdk-platform-tools android-studio android-support-repository avogadro clean-chroot-manager cower debtap dropbox eclipse-emf gcc-gcj-ecj google-chrome grive gstreamer0.10 gstreamer0.10-base gstreamer0.10-base-plugins insync jquery kdebase-workspace libavutil-52 ncurses5-compat-libs netatalk obnam otf-fira-code-git pacaur package-query pdftk python-path python2-cliapp-git qtwebkit strigi tor-browser-en ttf-mac-fonts ttf-noto-fonts-emoji-ib vivaldi-snapshot vivaldi-snapshot-ffmpeg-codecs webkitgtk xf86-input-mtrack-git yaourt not found in repositories, trying AUR...
:: resolving dependencies...
grep: /dev/fd/63:1: Unmatched [ or [^
grep: /dev/fd/63:2: Unmatched [ or [^
grep: /dev/fd/63:3: Unmatched [ or [^
grep: /dev/fd/63:4: Unmatched [ or [^
grep: /dev/fd/63:5: Invalid range end
grep: /dev/fd/63:6: Unmatched [ or [^
grep: /dev/fd/63:7: Unmatched [ or [^
grep: /dev/fd/63:8: Invalid range end
grep: /dev/fd/63:9: Unmatched [ or [^
grep: /dev/fd/63:10: Invalid range end
grep: /dev/fd/63:11: Unmatched [ or [^
grep: /dev/fd/63:12: Unmatched [ or [^
grep: /dev/fd/63:13: Unmatched [ or [^
grep: /dev/fd/63:14: Unmatched [ or [^
grep: /dev/fd/63:15: Invalid range end
grep: /dev/fd/63:16: Invalid range end
grep: /dev/fd/63:17: Unmatched [ or [^
grep: /dev/fd/63:18: Unmatched [ or [^
grep: /dev/fd/63:19: Unmatched [ or [^
grep: /dev/fd/63:20: Unmatched [ or [^
grep: /dev/fd/63:21: Unmatched [ or [^
grep: /dev/fd/63:22: Unmatched [ or [^
grep: /dev/fd/63:23: Unmatched [ or [^
grep: /dev/fd/63:24: Invalid range end
grep: /dev/fd/63:25: Invalid range end
grep: /dev/fd/63:26: Unmatched [ or [^
grep: /dev/fd/63:27: Unmatched [ or [^
grep: /dev/fd/63:28: Unmatched [ or [^
grep: /dev/fd/63:29: Unmatched [ or [^
grep: /dev/fd/63:30: Unmatched [ or [^
grep: /dev/fd/63:31: Unmatched [ or [^
grep: /dev/fd/63:32: Unmatched [ or [^
grep: /dev/fd/63:33: Invalid range end
grep: /dev/fd/63:34: Unmatched [ or [^
grep: /dev/fd/63:35: Unmatched [ or [^
grep: /dev/fd/63:36: Invalid range end
grep: /dev/fd/63:37: Unmatched [ or [^
grep: /dev/fd/63:38: Invalid range end
grep: /dev/fd/63:39: Unmatched [ or [^
grep: /dev/fd/63:40: Invalid range end
grep: /dev/fd/63:41: Unmatched [ or [^
grep: /dev/fd/63:42: Invalid range end
grep: /dev/fd/63:43: Unmatched [ or [^
:: no results found for acroread
:: no results found for android-google-repository
:: no results found for android-platform
:: no results found for android-sdk
:: no results found for android-sdk-build-tools
:: no results found for android-sdk-platform-tools
:: no results found for android-studio
:: no results found for android-support-repository
:: no results found for avogadro
:: no results found for clean-chroot-manager
:: no results found for cower
:: no results found for debtap
:: no results found for dropbox
:: no results found for eclipse-emf
:: no results found for gcc-gcj-ecj
:: no results found for google-chrome
:: no results found for grive
:: no results found for gstreamer0.10
:: no results found for gstreamer0.10-base
:: no results found for gstreamer0.10-base-plugins
:: no results found for insync
:: no results found for jquery
:: no results found for kdebase-workspace
:: no results found for libavutil-52
:: no results found for ncurses5-compat-libs
:: no results found for netatalk
:: no results found for obnam
:: no results found for otf-fira-code-git
:: no results found for pacaur
:: no results found for package-query
:: no results found for pdftk
:: no results found for python-path
:: no results found for python2-cliapp-git
:: no results found for qtwebkit
:: no results found for strigi
:: no results found for tor-browser-en
:: no results found for ttf-mac-fonts
:: no results found for ttf-noto-fonts-emoji-ib
:: no results found for vivaldi-snapshot
:: no results found for vivaldi-snapshot-ffmpeg-codecs
:: no results found for webkitgtk
:: no results found for xf86-input-mtrack-git
:: no results found for yaourt

Is this a bash thing??? Why all the unmatched statements??? And why doesn't this work?

Last edited by kevdog (2017-09-23 23:23:00)

Offline

#2 2017-09-23 23:21:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

What???

What you've just written makes absolutely no sense.

Last edited by Slithery (2017-09-23 23:22:32)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-09-23 23:22:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

Did you hit submit prematurely.  What is your question?  What command(s) are you attempting?  What is their output?  What is the airspeed velocity of an unladen swallow?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2017-09-23 23:24:05

kevdog
Member
Registered: 2013-01-26
Posts: 102

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

Sorry guys about the unfinished post -- Had some technical issues --- not sure about the unladen swallow airspeed -- 10 knots?

Offline

#5 2017-09-23 23:35:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

Not a Pacman issue, moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2017-09-24 00:16:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

You could check what's actually in the pkglist file.  But a much much better option would be to just read the man page of the AUR helper you seem to have chosen to use.

As a first step improvement you could use the -q flag to generate the list properly so there is no need for awk.  As a much better solution, you'd just tell it to upgrade the package, as that's exactly what it's for: why generate a list and pass it back, just do the update.

EDIT: as to the actual cause - for curiosity sake - I'd guess the original output is colored.  You are capturing escape sequences.  As for the swallow, it's a trick question as the type of swallow is not specified, but for the European swallow it seems it would be 11 m/s or 21 knots.

Last edited by Trilby (2017-09-24 00:21:43)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2017-09-24 03:00:04

kevdog
Member
Registered: 2013-01-26
Posts: 102

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

I actually want to generate a list of packages needing upgrades -- filter the list -- and then pass the filtered list back to the aur helper. 

So I actually used the following which seemed to work:

$ pacaur -Qqu | grep -v gcc | xargs pacaur -S

Thanks for tips about the coloring.  I managed to see the escape sequences within the original file like:

cat filelist | hexdump -C

I could have used some sed magic to filter the escape sequences however pacaur -Qqu did the trick without all the extra overhead. 

Cool bird story -- thanks for the pearl smile

Offline

#8 2017-09-24 10:14:18

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

kevdog wrote:

I actually want to generate a list of packages needing upgrades -- filter the list -- and then pass the filtered list back to the aur helper.

Why on earth would you want to do that?
Partial upgrades are unsupported.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-09-24 11:11:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: Can't upgrade with Pacaur/Pacman passing a list to packages to functio

I second the why on earth question above.  But if you happen to not be on earth, you still need to RTFM (seriously read them), there is a way to hold back certain packages that is astronomically simpler than this generate-list/filter-list/install-list process.

Stop trying to be "creative" and take a few moments learning to properly use the package management tools you have.

Last edited by Trilby (2017-09-24 11:12:38)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB