Re: erased all XWindows

From: Roberto Sanchez (rcsanchez97_at_yahoo.es)
Date: 02/04/04

  • Next message: NAV for Microsoft Exchange-TQSMAIL: "Norton AntiVirus a détecté et supprimé un virus dans un message que vous avez envoyé."
    Date: Tue, 03 Feb 2004 19:05:31 -0500
    To: debian-user@lists.debian.org, sam@wdn.com
    
    
    

    Kent West wrote:
    > Sam Rosenfeld wrote:
    >
    >> I erased all my X-related bin files (that is, including apps running
    >> on X)
    >> and did not have them backed up. I could reinstall them one at a time
    >> but
    >> that seems very laborious -- is there some better way?
    >>
    >> Currently using Linux 2.2.20, Debian Woody
    >>
    >> As I no longer subscribe to the list, please cc me with reponses.
    >> Thanks.
    >>
    >> sam
    >>
    >>
    >>
    >>
    > You could try tasksel, which would get you quite a bit of it back.
    >
    > I'd probably use dselect or aptitude, and just go marking things for
    > install that look interesting. Then start the download/install and go
    > strum on the guitar for half an hour (or four days, if you're on dial-up).
    >
    > Neither of these is reinstallation one at a time, but you will have to
    > mark one at a time to get a lot of what you want.
    >

    This is better:

    sudo apt-get --reinstall install `dpkg -S /usr/X11R6/bin/* | sed
    's/^\([^,]*\):[^,]*/\1/' |sort |uniq`

    Essentially, if you only deleted the files in /usr/X11R6/bin/ (and did
    not harm the package archive) this command, will search for and print
    the name of every package with a file installed to /usr/X11R6/bin/
    (dpkg -S /usr/X11R6/bin/*). Then take that list and remove everything
    after the end of each package name sed ('s/^\([^,]*\):[^,]*/\1/'), sort
    the package names (sort), remove duplicate entries (uniq), and finally
    reinstall all the packages, (sudo apt-get --reinstall install `the
    output of the above commands`).

    Admittedly, this will take a while to donwload and reinstall all the
    packages, but it will ensure that you get all of the packages even if
    they are not part of the X Windows System task.

    HTH,

    -Roberto

    
    

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


  • Next message: NAV for Microsoft Exchange-TQSMAIL: "Norton AntiVirus a détecté et supprimé un virus dans un message que vous avez envoyé."

    Relevant Pages

    • Re: Why most run Microsoft, not RedHat
      ... I would have suggested a complete reinstall. ... And my workplace had a strange policy for install only ... the packager didn't know how to make a good rpm package. ... after looking at the modification time on the ...
      (Fedora)
    • Re: .NET Framework
      ... the package is most likely somewhere on the Norton CD if you care to ... You could just reinstall Norton entirely instead, ... skip the .Net install if it thinks it's already installed. ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Dell Latitude D600 CPU usuage 100%
      ... I suspect that it may be Zone Alarm, so didn't reinstall Zone Alarm ... package -- BTW, I was using the entire security suite which includes ... install the chipset driver upgrades. ...
      (alt.sys.pc-clone.dell)
    • Re: Virtualbox does not lunch (FREEBSD 7.2 STABLE)
      ... Force removal of the package, ... and when making install, keep saying that is already installed:S ... then in virtualbox port dir.... ... I suspect the make reinstall script failed to symlink the VirtualBox ...
      (freebsd-questions)
    • WMP 10 wont install several errors
      ... to install WMP10 results in: ... It was not possible to complete setup, reinstall Windows Media Player 10 ... Package install complete. ...
      (microsoft.public.windowsmedia.player)