Re: 'rpm --freshen': dpkg Equivalent?

From: Ron Johnson (ron.l.johnson_at_cox.net)
Date: 11/07/04

  • Next message: Niels L Ellegaard: "Re: 'rpm --freshen': dpkg Equivalent?"
    To: Debian-User <debian-user@lists.debian.org>
    Date: Sun, 07 Nov 2004 12:17:19 -0600
    
    
    

    On Sun, 2004-11-07 at 13:06 -0500, Kenneth Jacker wrote:
    > jh> why would you just one specific package to be updated?
    >
    > Sorry I didn't explain more. Here's the situation ...
    >
    > I have an office machine, O, and a home machine, H both using
    > sarge/testing. O has a high-speed connection to the Internet, but H
    > doesn't. After "updating" O, I copy all the .deb files in
    > O:/var/cache/apt/archives to removable media and bring them home.
    >
    > Once home, I basically do a "dpkg -i *.deb" of the files copied from O.
    > (It's actually a bit more complicated due to dependencies ...)
    >
    > Herein lies the problem. There are packages I install/run on O (e.g.,
    > 'mailman') that I do not want to install/run on H. However, if I
    > quickly do "dpkg -i *.deb" on H, it'll install *all* the .debs --
    > including 'mailman'.
    >
    > Though I *could* write a script to accomplish what I want (i.e.,
    > ensuring each package is present before upgrading), I thought there
    > might be an easier approach via a 'dpkg' command-line option (similar
    > to "rpm -F").

    Why not just:
      # cp /cdrom/*deb /var/cache/apt/archives
      # apt-get update
      # apt-get upgrade

    Any debs that are already in H:/var/cache/apt/archives won't be
    re-downloaded. The caveat is that any relevant packages that have
    been moved into sarge in the interregnum will get downloaded.
    This way is a lot simpler, though.

    -- 
    -----------------------------------------------------------------
    Ron Johnson, Jr.
    Jefferson, LA USA
    PGP Key ID 8834C06B
    "Whatever may be the moral ambiguities of the so-called demoratic
    nations and however serious may be their failure to conform
    perfectly to their democratic ideals, it is sheer moral
    perversity to equate the inconsistencies of a democratic
    civilization with the brutalities which modern tyrannical states
    practice."
    Reinhold Nieburhr, ca. 1940
    
    

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


  • Next message: Niels L Ellegaard: "Re: 'rpm --freshen': dpkg Equivalent?"

    Relevant Pages

    • apt-get failing
      ... Err http://security.debian.org etch/updates Release.gpg ... Temporary failure resolving âsecurity.debian.orgâ ... Reading package lists... ... You may want to run apt-get update to correct these problems ...
      (Debian-User)
    • Re: apt-get failing
      ... Err http://security.debian.org etch/updates Release.gpg ... Temporary failure resolving âsecurity.debian.orgâ ... Reading package lists... ... You may want to run apt-get update to correct these problems ...
      (Debian-User)
    • Pse explain apt-get & security
      ... Sources are sarge - ran apt-get update and got something related to ... Ran upgrade and nothing appears to happen. ... Hit http://ftp.us.debian.org sarge/main Packages ... Reading Package Lists... ...
      (Debian-User)
    • Re: Installing a package from "testing" or "unstable". How?
      ... Kevin Dean wrote: In order to do this, you must have the testing or unstable ... The apt-get install <package name> and it should pull from the unstable repository. ... And dont forget to uncomment the line with stable, and #to comment out# the line with unstable after you get your package, and then run apt-get update again, or your next upgrade will bring your styable machine to unstable ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: cant find /usr/include/ncurses
      ... Couldn't stat source package list ... http://security.ubuntu.com breezy-security/universe ... E: Couldn't find package libncurses5-dev ... "Run apt-get update to correct these problems". ...
      (Ubuntu)