FS#4191 - pacman -Su --dryrun type option
            Attached to Project:
            Pacman
            
Opened by Aaron Bull Schaefer (elasticdog) - Saturday, 18 March 2006, 17:03 GMT
Last edited by Dan McGee (toofishes) - Friday, 24 August 2007, 01:21 GMT
          Opened by Aaron Bull Schaefer (elasticdog) - Saturday, 18 March 2006, 17:03 GMT
Last edited by Dan McGee (toofishes) - Friday, 24 August 2007, 01:21 GMT
| 
 | Details
                    It has come up a few times in the forums, and it would be
                    helpful if pacman had the ability to list what packages
                    would be upgraded if you were to do a full 'pacman -Syu'.
                    Much like Gentoo's 'emerge --pretend', or DarwinPorts 'port
                    outdated', it could be useful in a number of ways... As it is now, you have to be root in order to see a list of new upgrades, and by default, hitting the <Enter> key will choose 'Y' and install all of the new packages. That can be a fairly dangerous as it's an easy mistake to hit the <Enter> before you're ready to mess with doing a large upgrade (like new kernels, xorg, etc.). Having a separate option could eliminate the need to worry and would even allow the listings to be incorporated into scripts and whatnot that wouldn't necessarily have root access. Not only that, but the flag could be used to give more detailed information than what the current method does, like what version of the package you currently have, and what version you would upgrade to. I would imagine it would work best with one package per line (easy to grep) and look something like this: ruby 1.8.3-1 --> ruby 1.8.4-1 gimp 2.2.10-1 --> gimp 2.2.10-2 For more information, see this forum thread: http://bbs.archlinux.org/viewtopic.php?t=19750 | 
              This task depends upon
              
              
            
            
          
            Closed by  Dan McGee (toofishes)
Friday, 24 August 2007, 01:21 GMT
Reason for closing: Implemented
Additional comments about closing: implemented in 3.0.X releases
          
        Friday, 24 August 2007, 01:21 GMT
Reason for closing: Implemented
Additional comments about closing: implemented in 3.0.X releases
 
                      
But yes, this feature request aims to bring more functionality.
pacman -Slu
-l, --list is "list packages". To me this says "sync, list, upgrade" or "list packages for upgrade", but that might not be that intuitive... opinions?
And yeah, something like this should be fairly easy to implement, but it's not critical right now
I'll use that. I'll try and get this in cvs this weekend.
Here is an example:
dmcgee@dublin ~
$ pacman -Qu
Checking for package upgrades...
Targets: cpio-2.9-1 docbook-xsl-1.73.0-1 ed-0.8-1 glib2-2.14.0-3
graphviz-2.14-2 gtk2-2.10.14-3 intltool-0.36.1-1 kdelibs-3.5.7-5
libarchive-2.2.6-1 man-pages-2.64-1 pciutils-2.2.6-1
readline-5.2-3 xterm-229-1
Total Package Size: 35.63 MB
$ sudo pacman -Su
:: Starting full system upgrade...
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: cpio-2.9-1 docbook-xsl-1.73.0-1 ed-0.8-1 glib2-2.14.0-3
gd-2.0.35-1 graphviz-2.14-2 gtk2-2.10.14-3 intltool-0.36.1-1
kdelibs-3.5.7-5 libarchive-2.2.6-1 man-pages-2.64-1
pciutils-2.2.6-1 readline-5.2-3 xterm-229-1
Total Package Size: 35.80 MB