Results 1 to 3 of 3

Thread: showing packages that need upgrading

  1. #1
    Join Date
    Jun 2005
    Location
    The Netherlands
    Beans
    110
    Distro
    Ubuntu 8.04 Hardy Heron

    showing packages that need upgrading

    hi all,

    Im doing some bash scripting just for fun and making my life easy.

    anyway i want apt-get to tell me wich packages are going to be upgraded with out apt asking me to upgrade.

    root@mixmaster:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree... Done
    The following packages will be upgraded:
    base-files gnupg login passwd ppp ubuntu-base ubuntu-minimal ubuntu-standard
    8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 2234kB of archives.
    After unpacking 0B of additional disk space will be used.
    Do you want to continue [Y/n]? n
    Abort.
    root@mixmaster:~#

    i always have to say, n, in the end

    -y Assume Yes to all queries and do not prompt

    only with no, is what im looking for
    I am high on life...
    My server is high on Ubuntu...

  2. #2
    Join Date
    Oct 2004
    Location
    Germany, Old Europe
    Beans
    379
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: showing packages that need upgrading

    Not very elegant, but you can use
    Code:
    # yes no | apt-get upgrade
    .

    There is also a --simulate (or short -s) option for apt-get, which only prints out what apt would do, but this will probably output much more than you want:
    Code:
    # apt-get -s upgrade

  3. #3
    Join Date
    Jun 2005
    Location
    The Netherlands
    Beans
    110
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: showing packages that need upgrading

    yes! this is what i was looking for

    thnx loads dude
    I am high on life...
    My server is high on Ubuntu...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •