Java Mailing List Archive

http://www.redhatconfig.com/

Home » Ubuntu Technical Support »

Re: apt-get system reinstallation

NoOp

2008-07-22

Replies: Find Java Web Hosting

Author LoginPost Reply
On 07/17/2008 09:15 AM, Brad Sims wrote:
> On Wednesday 09 July 2008, Bart Silverstrim wrote:
>> Is there a simple way to try a "reinstall" of everything currently
>> installed on my system?
>>
>> I have 2 Ubuntu 8.04 systems, one where youtube videos crash Firefox
>> constantly (flash problem?) and the other doesn't seem have trouble
>> playing flash videos. So while the latest Firefox and flash plugins from
>> the repos may have troubles, it may be a combination problem of some
>> kind on the one that is causing issues?
>>
>> I didn't know if there was a simple way to try an in-place reinstall of
>> software to see if it was a linking or dependancy issue that could be
>> causing flash videos to keel over on the one system.
>>
> This little program will do what you want.
>
> <Start Script>
> #!/bin/bash
>
> # This script *MUST* be ran either
> #   under sudo.
>
> # The 'COLUMNS=200 dpkg -l' part
> #   displays intalled packages
>
> # The `awk '/^ii/ {print $2}' part
> #   strips out the package names
> #   from the previous list
>
> # The 'xargs apt-get --reinstall install' part
> #    uses each package name as an argument to
> #    apt-get; 'the --reinstall install' tells
> #    apt to reinstall the package if it is
> #    already there
>
> COLUMNS=200 dpkg -l | awk '/^ii/ {print $2}' | xargs apt-get --reinstall install
> <End Script>
>

Have you actually tried this?


--
ubuntu-users mailing list
ubuntu-users@(protected)
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.