Re: How to list all files that are going to be installed when doing "apt-get upgrade"?

From: Sonixxfx (sonixxfx_at_gmail.com)
Date: 09/30/05

  • Next message: Leonardo Francalanci: "Re: "ata1 is slow to respond, please be patient" msg"
    Date: Fri, 30 Sep 2005 07:21:45 +0200
    To: debian-user@lists.debian.org
    
    

    Thanks Joe,

    It works quite well, only "awk '{print $1}'" also shows the "/unknown" part
    that is appended to the packages names. For example:

    libsnmp5/unknown
    unzip/unknown
    cpio/unknown

    Because of this dpkg cannot handle this.

    Can you tell me how I can exclude that "/unknown" part?

    Thanks a lot

    Regards,

    Ben

    On 9/29/05, Joe Smith <unknown_kev_cat@hotmail.com> wrote:
    >
    > >I know how to list the packages that are going to be installed, like with
    > >"apt-get -s upgrade" or "apt-show-versions -u", but I >would like to know
    > >which files included in these packages are going to be installed. I have
    > >tried "grep" when doing "apt-get -s >upgrade" and "apt-show-versions -u",
    > >and thought of piping the output trough "dpkg -L", but my knowledge is
    > too
    > >limited for >this.
    > something like this should work:
    > for i in $(apt-show-versions -u|awk '{print $1}'); do dpkg -L $i;done
    >
    > The awk '{print $1}' outputs the first collumn. I don't rember what column
    > apt-show-versions shows the package name, so you may need to change this.
    >
    > To sort the output do this instead:
    >
    > sort <(for i in $(apt-show-versions -u|awk '{print $1}'); do dpkg -L
    > $i;done)
    >
    >
    >
    > --
    > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
    > with a subject of "unsubscribe". Trouble? Contact
    > listmaster@lists.debian.org
    >
    >

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Leonardo Francalanci: "Re: "ata1 is slow to respond, please be patient" msg"

    Relevant Pages

    • Re: yum - prevent Redhat-Release update
      ... I guess I just wanted to be sure the old "exclude" would stop a release ... configuration file. ... List of packages to exclude from updates or installs. ...
      (RedHat)
    • Importing MDK RPMs in FC2 ?
      ... this is my first time in this ml..great thanks to all for this ... Due to the choise to exclude many packages for the DMC Act linked ...
      (Fedora)
    • Re: Package exclusion for update.
      ... I've been messing around with alot of packages, ... and just wondering how can I exclude those packages for ...
      (Ubuntu)
    • Package exclusion for update.
      ... Is there a way to exclude some packages to be updated, ... where kernel* would be excluded for updating. ... I've been messing around with alot of packages, and I'm having fun with it, ...
      (Ubuntu)
    • Re: Package exclusion for update.
      ... I've been messing around with alot of packages, ... and just wondering how can I exclude those packages for ...
      (Ubuntu)