A package detection script to help rebuild the local database.

At this point this is a quick "proof of principle" script inspired by this thread.
This will download file lists for the specified repos and then check them against files on your system. It will then print a percentage for each package that indicates how many of that package's files were found on your system. Note that it ignores directories as that would lead to loads of partial false positives.
The idea is that it should provide a decent starting point for rebuilding the local package database. You can safely run it on your system to see the output as it doesn't change anything.
The script depends on Perl and curl. You should change the "$url" variable to a local mirror (I've used archlinux.org along with "`arch`" as relatively failsafe default). You can also add or remove repos from the "@repos" array.
Again, this is just something that I threw together to see if it works and it's very much a "hands-on" script right now. I might flesh it out and try to add more features later. Note that it cannot determine which packages were installed as dependencies (although I posted a script somewhere on the forum that could explicitly install only top-level packages, which could probably be merged into this if it goes anywhere). It is also limited to repos that contain <repo>.files.tar.gz.
#!/usr/bin/perl
use strict;
use warnings;
use File::Temp qw/tempdir/;
my $url = 'ftp://ftp.archlinux.org/$repo/os/' . `arch`;
chomp $url;
my @repos = qw/core extra community/;
my $tmpdir = tempdir(CLEANUP=>1);
foreach my $repo (@repos)
my $files_url = $url;
$files_url =~ s/\/\$repo\//\/$repo\//;
$files_url .= '/' . $repo .'.files.tar.gz';
`cd "$tmpdir" && curl "$files_url" | bsdtar -xf-`;
opendir(my $dh, $tmpdir) or die;
my @pkgs = readdir($dh);
close($dh);
my $l = 0;
foreach my $pkg (@pkgs)
my $i = length($pkg);
$l = $i if $i > $l;
foreach my $pkg (sort @pkgs)
next if ($pkg eq '.' or $pkg eq '..');
my @files = ();
if (open(my $fh, '<', $tmpdir .'/'. $pkg .'/files'))
while (defined(my $line = <$fh>))
chomp $line;
next if $line eq '%FILES%' or substr($line,-1) eq '/';
push @files, '/' . $line;
close($fh);
my $n = scalar @files;
next if $n == 0;
my $i = 0;
foreach my $file (@files)
$i++ if -f $file;
printf("%-${l}s %3d%%\n", $pkg, 100*$i/$n);
else
print "error: failed to open $tmpdir/$pkg/files\n";
Example output:
perl-xml-xpath-1.13-4 0%
perl-xmms-0.12-4 0%
perl-xyne-arch-0.95-1 100%
perl-xyne-common-0.05-3 100%
perl-yaml-0.70-1 0%
Last edited by Xyne (2010-07-24 16:13:30)

Thanks for the feedback, tavianator.
Which false positives did it detect? Were they variants of installed packages?
I think the false negatives are due to packages which manipulate their own files during or after installation. They should still show up in the list though, albeit with a lower percentage. I don't think there's any way to work around that.

Similar Messages

  • How do you rebuild the Cache database?

    What are the steps to rebuild the Cache database?  Thanks!                  

    The right answer is to log a case with Cisco support to get official steps.
    What we do here (an Oracle DB):
    - bring down CM
    - make an export of TES schema (optional)
    - run the clearcache.sql script (in the ../cache/tes6.0.0.0/cachesql.zip) to drop schema objects.
    - verify that sql ran correctly and scheme is indeed empty
    - restart the CM - in our case it takes 2 - 2.5 hrs for cache to be rebuilt (the secondary sync completed to show up)

  • Rebuilding the Kerberos Database

    Hi,
    recently I'm experiencing some error messages in our OpenDirectory Log about Kerberos missconfiguration.
    Q.1)  So I'd need to rebuild the Kerberos Database from scratch out of the LDAP Database. But how do I do that in Lion Server ???
    Q.2)  So old Mac Client won't logon the Lion Server anylonger. There seems so be a POSIX "homedirectory" attribute missing. How do I reconfigure the system to fix that ?
    Thanks in advance.

    I have a RMAN backup which has been copied to another server and I am required to rebuild the database there.
    Is this possible?YES
    and this is how my oracle rman backup looks like
    RUN {    
    crosscheck backup;
    crosscheck archivelog all;
    backup database format='e:\Oracle_Backup_data\DB\%U_%I_%T.bkp' tag="everyday_full_bkup"
    plus archivelog format='d:\Oracle_Backup_data\DB\Arch%U_%I_%T.arc' tag="arcbkp";
    backup current controlfile;
    restore database validate;
    }No issues with Script, You can perform DUPLICATE from target database to AUXILIARY Instance.

  • How do I stop Excel from trying to rebuild the Outlook database when I try to open a .xls file?

    Using Office 2011. When I try to open a .xls or .docx file, Excel or Word wants to rebuild the Outlook database. I do not have Outlook installed.
    The file will open if I dismiss the Outlook query popup, and double click on the same file I just tried to open.
    Works fine, just irritating.

    Open Mail, then open Preferences (command-comma), and on the "General" pane the top entry is "Default email reader."  Choose Mail (6.3) from the box.
    Now all mailto: links will open Mail by default.  If you ever want to set another mail client as the default, choose it in that box.

  • Why we choose to use the local database for wp8?

    I have some apps, all face the same problem, much data is saved in the runtime memory, it really bad for saving device resources. So I just would like to know if I transfer the data into the local database, is that helpful to save some more memory space,
    after all the database is built in local file and access through the isolation storage. Could anyone tell me about how to save the memory space, I am now very tired to resolve those bugs caused by out of memory...
    Help me please.

    Hi Situdana,
    Here are some scenarios.
    For instance if you have a 10MB image stored in your local database, and you would like to display. Without load the whole image to the runtime memory you cannot display the image to your user, that means in this situation, runtime memory equals more or
    less 10MB.
    Another example could be you need to find some data in a 10MB data file, if the file is structured, using SQLite can help you reduce the time to search and use less runtime memory.
    I don't know what kind of data you saving on the runtime memory, but looks like you can manually manage the memory for instance release some IDispose() driven class when you think they are un-necessary. We can only provide a really general suggestion to
    you, for more information you can ref:
    Developing apps for lower-memory phones for Windows Phone 8
    --James
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • After upgrading ACS 3.3.1 to 4.2 on windows the local database is not working

    Hi,
    I have upgaded the ACS 3.3.1 for windows server to 4.2. Everything went fine but the local database is not working.
    The CD is an upgrade kit from 3.x to 4.2 on windows. I tried to install directly the 4.2 I was able to install but integration with AD/LDAp is not working. Anysay its an upgrade kit so I cant expect it shoud work when install drectly the 4.2 but by upgrading from 3.3 to 4.2 everything should work fine.
    I followed the upgradation path as recomended.
    Also we have a requirment that once it is upgraded to 4.2 we need to shift the whole thing from the physical server to a virtual machine on VMware ESX server 3.5.
    Can anybody pls guide me if anything else to do after the upgradation.
    Thanks & Regards
    Sachi

    Hi Javier,
    First of all I was facing a problem of restoring the old database of 3.3 to 4.2. Somehow I overcame that issue by following the below steps. Now local authentication is working fine but AD/other External database authentication is not working. As you told the setting for the unknown users are configured to fetch the credentials from the external database if it is not in the local database.
    Do we need to do anything in the AD itself?
    Regards
    Sachi
    Steps for ACS upgrade to 4.2 version
    Below are the requested steps mentioned for the up gradation from ACS 3.3.2 to ACS 4.2.
            1)     Take a configuration backup from existing ACS. ACS--->System
    configuration----> ACS Backup
    2)    now if you have  ACS 3.3.2 on server. take backup of the ACS
    3)   Insert the cd or if you have the set up on the system then  Run the setup of ACS 3.3.4. During the process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 3.3.4 upgrade.
    4)     Once you are at 3.3.4, take a backup and keep it handy.
    5)     Run the setup of 4.1.1. During this process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 4.1 upgrade.
    6)Once you are at 4.1.1.24 take a backup and keep it handy.
    7)     Run the setup of 4.2. During this process it will prompt you to
    upgrade existing configuration. Make sure you check that option else we will
    loose the database. Now you need to hit next.next to finish the 4.2 upgrade.
    8)     Once you are at 4.2 take a backup and keep it handy. Now run the
    patch 12 and take a backup again.
    9)     Now fresh install 4.2 on your new production server and install patch
    12. Restore the 4.2 patch 12 backup and you should be all set.

  • How do you rebuild the font database?

    I've been having big trouble with InDesign crashing everytime I print whether to an actual printer, distiller or to my desktop and have found that I need to rebuild my font database but don't know exactly how to do that. Can anyone help?
    mac pro   Mac OS X (10.4.9)  

    The right answer is to log a case with Cisco support to get official steps.
    What we do here (an Oracle DB):
    - bring down CM
    - make an export of TES schema (optional)
    - run the clearcache.sql script (in the ../cache/tes6.0.0.0/cachesql.zip) to drop schema objects.
    - verify that sql ran correctly and scheme is indeed empty
    - restart the CM - in our case it takes 2 - 2.5 hrs for cache to be rebuilt (the secondary sync completed to show up)

  • No more spotlight in itunes after rebuilding the itunes database

    Hello,
    My itunes library have been damaged, and thanksfully, itunes has rebuilt it from the xml files... But the spotlight box in the top right of itunes does not work anymore...
    The synthesis of the following is that it seems something happens in the rebuilt of the database , that makes in no more correctly seen for the spotlight searches...
    Do you have any clue about it... I feel I have tried everything !!!
    I have looked in many places on the web before posting that post, I guess I have turn around a lot... Without any solution...
    More precisely, the symptoms are the followings :
    _ I can still -in the top right search box of itunes- look after ONLY artist, album... and the results are correct
    _ but when looking after anything else that is in the other fields (with the search positionned to « ALL ») it seems that spotlight do not search anymore in these other fields... And I get no results ! In fact I have put many infos into the « grouping » field, these infos are no more seen.
    I have done the following to try to sort that out :
    _ Of course reboot
    _ rebuild the spotlight index...
    _ I have found a way to force a rebuild of itunes library : (http://hifiblog.com/past/2006/05/11/howto-move-your-itunes-music-while-preservin g-library-data-when-you-dont-let-itunes-manage-your-music-library/) which I have used from the xml file using the part 2 of that post : same result after a force rebuilt !
    Happily I have found a very old library (more than 6 months, and I have made so many changes from that time...). With that library :
    _ the search is correctly done with ALL the fields....
    _ but if I rebuild from the old xml, the spotlight search is again done with ONLY the artist, album and WITHOUT ALL the fields !!!
    Then clearly something seems to come from the rebuilt itself !!! What could be done ????
    Big thanks
    Jean Christophe
    A have upgraded today, but I was previouly in 10.6.4 and itunes 10.0.1 : same problems !

    Well... No help... ?
    This pb is really very ennoying, as I sort all mu music with what I have put in the "comment" field... adn itunes doen't any more use that field from the top right spotlight search... Is there anything to do around that ?

  • What does rebuild the library database do?

    I'm thinking this may help solve my issue.

    Straight from the source
    iPhoto 4 or later: Rebuilding the iPhoto Library
    "iPhoto has an undocumented feature that allows you rebuild the currently selected iPhoto library. Sometimes rebuilding the library can make it readable if it seems to be unreadable, has multiple missing photos, or if there are other issues related to reading the iPhoto library structure.
    iPhoto 4 or later allows you to rebuild the active iPhoto Library. This might be useful if the library has missing photos, appears to be unreadable, or exhibits other issues that seem related to the iPhoto library structure.
    Warning: Because some data or photos may not be recovered during the rebuild, you should back up your existing iPhoto Library folder, which is located in your Pictures folder, before using the rebuild feature."

  • SBS 2008 - How to rebuild the reporting database

    I'd like to start using the inbuilt reporting facilities in SBS2008.  But when I start up the console and click on "Reports", although I am taken to the SBS2008 console's reports screen, a couple of seconds later, the following error message
    is displayed:
    "There was an error while loading data for this page".
    When I click "Close" to close the error message, I'm left looking at the console's reports screen but with nothing shown.  The top pane simply says:
    "There are no reports to display".
    So, I then click on "Add a new report" in the right-hand pane.  Nothing happens for a couple of minutes - not even an hour glass.  Eventaully, a window opens up, headed "New Report Properties".  So, I had a go at creating
    a new report, e.g.:
    - Report Name = Test123
    - Content = Summary
    - E-Mail Options = I entered my email address
    - Schedule = I set it to daily at 9pm
    When I clicked "Ok", after a couple more minutes of thinking, it came back with:
    "The report properties cannot be saved. Reopen the Report Properties dialog, and then try again."
    I don't know how to tackle this issue.  I administer the network here but don't know SQL Server - and we don't have any SQL Server applications of our own - just the inbult ones like WSUS.
    If there is a problem with the actual reporting database, I'd be happy to rebuild it, or even reinstall SQL.   But I don't know how.   My main concern is that WSUS is running beautifully and I don't want to go anywhere near anything that might
    break it.  I would rather have no reports than lose WSUS.
    Could someone point me to some step-by-step instructions aimed at someone who knows Windows Server (to an extent) and SBS2008 - but has no knowledge of SQL Server?

    I worked through the article but hit problems.  Any thoughts would be gratefully received.
    Here's what happened:
    1. I checked that SQL Server 2005 is installed and that Windows SBS Manager is installed and started
    2. I looked for "SQLServer (SBSMONITORING)" in the list of services but it is completely missing
    I then followed the section headed "If necessary, create a new SBSMonitoring database".  This takes one to another article:
    http://blogs.technet.com/b/sbs/archive/2011/08/22/how-to-recreate-the-sbsmonitoring-database.aspx.
    I followed the instructions, which included downloading Create-SBSMonitoringDb.ps1 and running it in an administrative Power Shell.  When I ran it, I got a load of errors.
    =============================================================
    PS C:\windows\temp> .\Create-SBSMonitoringDb.ps1
    Stop-Service : Cannot find any service with service name 'MSSQL$SBSMONITORING'.
    At C:\windows\temp\Create-SBSMonitoringDb.ps1:28 char:13
    + Stop-Service <<<<  'MSSQL$SBSMONITORING'
        + CategoryInfo          : ObjectNotFound: (MSSQL$SBSMONITORING:String) [Stop-Service], ServiceCommandException
        + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StopServiceCommand
    Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\SBSMONITORING\Setup\' because it does not exist.
    At C:\windows\temp\Create-SBSMonitoringDb.ps1:35 char:23
    +     $key=get-itemproperty <<<<  "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\SBSMONITORING\Setup\"
        + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\...NITORING\Setup\:String) [Get-ItemProperty], ItemNotFo
       undException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
    Start-Service : Cannot find any service with service name 'MSSQL$SBSMONITORING'.
    At C:\windows\temp\Create-SBSMonitoringDb.ps1:54 char:14
    + Start-Service <<<<  'MSSQL$SBSMONITORING'
        + CategoryInfo          : ObjectNotFound: (MSSQL$SBSMONITORING:String) [Start-Service], ServiceCommandException
        + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StartServiceCommand
    Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote
    connections..
    Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
    Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not  allow
    remote connections..
    Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
    Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote
    connections..
    Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
    <Ctrl-C>
    =================================================================
    If you have read this far and understand the above, what should I do next?

  • Need help understanding the local caching of jnlp when creating it via jsp

    I'm trying to deploy an app via Web Start. I have occasions when I need to pass arguments, so I'm using JSP to create the JNLP and optionally write arguments.
    I need some help in figuring out how to cover my different use cases with as few different jnlps as possible and am confused about the local cacheing logic.
    Use 1
    Initial install: I pass an init=yes url param which writes a preferences file <argument> to be passed to my app. I don't want this argument cached in my jnlp, as this will overwrite the user's preferences on subsequent launches.
    Use 2
    Subsequent offline launches: no url params passed.
    Use 3
    Launch via html link (in a CMS): passes a file=<filename> url param which creates a file <argument> for my app to open. Again, I don't want this argument cached, otherwise launching from, say, the desktop shortcut will reopen this file.
    Can anyone explain how best to cover these three use cases?
    TIA!

    Did you solve this cache problem? I have a similar issue where I don't want it to use the arguments over again...

  • Can I force quit iphoto while it is rebuilding the library database?

    I have my iphoto library database and application on an external drive.  I did this because I have over 20 thousand photos and I wanted to conserve space on my MacBook Pro.  I bumped the connection and the computer decided on its own to rebuild the iphoto library.  I was worried that something was wrong so I let it do its thing.  It has been spinning for over 8 hours.  The message reads ... rebuilding library 22902 versions restored
    What do I do?

    Well I would let it finish. Though if that number hasn't changed then the process may be hung. so you'll have no choice but to force quit.
    What format is the external drive?
    If the force quit is necessary you can redo the rebuild yourself - what version of iPhoto do you have?

  • How to connect the local database of Pesonal Oracle From FormBuilder of develope 2000

    I installed developer 2000 with personal Oracle in win95. I opened Oracle Form builder and click connect submenu of File. It prompts for user name, password and Database. I added scott/tiger for user name and password and I do not know what I should add into the database item. I tried to add oracle or Local Database to the database item, but it did not work. I also tried to use system/manager/oracle, but it still did not work.
    Please tell me what should I add to the database item.
    Thanks

    You can use the "Oracle Net 8 assistant", "Oracle Net 8 Easy config" to see if you have the appropriate entry to the server in the local tnsnames.ora file (find it!). I mean that one in the Forms&Reports home, not that one in the Oracle_Home.
    Under local I mean the file tnsnames.ora in your application, not at the Oracle Server - this is a common mistake.
    You have to have there an entry like:
    REKS816.RILA.us =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bigbluenew.rila.us)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = REKS816)
    It is a bad practice, but you can add such entry using simple text editor. But before that make a copy of tnsnames.ora in order to restore it if you do not succeed.
    After that go to "control panel" and run "services".
    Look at your Oracle_Home_TNSlistener80 process. Stop it! Start it again!
    If you work on Unix find the relevant processes and notions of the Unix OS.
    Joseph Schwertner
    [email protected]

  • A script to help find the cause of recent upgrade breakage

    This script accepts package names as arguments and will output both a full dependency tree for each package, including installation dates of each dependency, and a list of all dependencies arranged by installation date in descending order along with a string to show the dependency chain for that dep.
    This is useful for determining which package upgrade is responsible for recent breakage as it should enable you to quickly determine which package upgrade coincides with the start of the issue.
    This script was inspired by a recent issue with sylpheed which was tracked down to an upgrade of a dep of a dep.
    The output is colored. If you don't like it, just change the variables at the top.
    I'll probably add this to pacpal sometime soon.
    #!/usr/bin/perl
    use strict;
    use warnings;
    use Term::ANSIColor;
    my $pkgname_color = 'bold yellow';
    my $timestamp_color = 'bold cyan';
    my $depchain_color = 'blue';
    my $pkgs = {};
    my $pkgname = '';
    my $type = '';
    my @deps = ();
    my @provides = ();
    my $date = '';
    foreach my $line ( split(/\n/, `LC_ALL=C pacman -Qi`) )
    if ($line =~ m/^Name\s+:\s+(.*\S)\s*$/)
    if ($pkgname ne '')
    $pkgs->{$pkgname}->{'date'} = $date;
    $pkgs->{$pkgname}->{'deps'} = [grep {$_ ne 'None'} @deps];
    foreach my $prov (@provides)
    if (not defined($pkgs->{$prov}))
    $pkgs->{$prov} = $pkgs->{$pkgname};
    $pkgname = $1;
    $date = '';
    $type = '';
    @deps = ();
    elsif ($line =~ m/^Depends On\s+:\s+(.*\S)\s*$/)
    $type = 'dep';
    push (@deps, split(/\s+/, $1));
    elsif ($type eq 'dep' and $line =~ m/^\s+(.*\S)\s*$/)
    push(@deps, split(/\s+/, $1));
    elsif ($line =~ m/^Provides\s+:\s+(.*\S)\s*$/)
    $type = 'provide';
    push (@provides, split(/\s+/, $1));
    elsif ($type eq 'provide' and $line =~ m/^\s+(.*\S)\s*$/)
    push(@provides, split(/\s+/, $1));
    elsif ($line =~ m/^Install Date\s+:\s+(.*\S)\s*$/)
    $date = &get_timestamp($1);
    $type = '';
    else
    $type = '';
    if ($pkgname ne '')
    $pkgs->{$pkgname}->{'date'} = $date;
    $pkgs->{$pkgname}->{'deps'} = [grep {$_ ne 'None'} @deps];
    foreach my $prov (@provides)
    if (not defined($pkgs->{$prov}))
    $pkgs->{$prov} = $pkgs->{$pkgname};
    sub display_dep_dates()
    my ($pkg, $i, $checked, $deps, $chain) = @_;
    my %copy = %{ $checked };
    $checked = \%copy;
    $pkg =~ s/[=<>].+$//;
    # prevent infinite recursion for cyclic dependencies
    return if defined($checked->{$pkg});
    $checked->{$pkg}++;
    my $indent = ' ' x $i;
    if (defined($pkgs->{$pkg}))
    print $indent, (color $pkgname_color), $pkg, (color 'reset'), ' : ', (color $timestamp_color), $pkgs->{$pkg}->{'date'}, (color 'reset'), "\n";
    if (not defined($deps->{$pkg}))
    $deps->{$pkg}->{'date'} = $pkgs->{$pkg}->{'date'} ;
    $deps->{$pkg}->{'chain'} = $chain ;
    $i++;
    $chain = ($chain eq '') ? $pkg : $chain .' -> '. $pkg;
    foreach my $dep (@{ $pkgs->{$pkg}->{'deps'} })
    $deps = &display_dep_dates($dep, $i, $checked, $deps, $chain);
    return $deps;
    foreach my $arg (@ARGV)
    print "DEPENDENCY TREE ($arg)\n";
    my $deps = &display_dep_dates($arg, 0, {}, {}, '');
    print "\n\n";
    print "DEPENDENCIES BY INSTALLATION DATE ($arg)\n";
    foreach my $pkg (sort {$deps->{$b}->{'date'} cmp $deps->{$a}->{'date'}} keys(%{$deps}))
    my $timestamp = (color $timestamp_color) . '[' . $deps->{$pkg}->{'date'} . ']';
    my $chain = $deps->{$pkg}->{'chain'};
    $chain = (color $depchain_color) . '(' . $chain . ')' if $chain ne '';
    $pkg = (color $pkgname_color) . $pkg;
    print "$timestamp $pkg $chain\n", (color 'reset');
    print "\n\n\n\n\n";
    sub get_timestamp()
    my $str = $_[0];
    my %month_hash;
    @month_hash{qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/} = (1..12);
    my ($month,$date,$hms,$year) = $str =~ m/^\S+\s+(\S+)\s+(\d+)\s+(\d+:\d+:\d+)\s+(\S+)\s*$/;
    return sprintf "%s-%02d-%02d %8s",$year,$month_hash{$month},$date,$hms;

    It seems to work fine... but it spits out this error/warning with the rest of the info....
    DEPENDENCIES BY INSTALLATION DATE (nvidia)
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    Use of uninitialized value in string comparison (cmp) at /home/geota/bin/pkginfo line 113.
    [2009-08-26 00:20:46] xf86-input-evdev (nvidia -> nvidia-utils-beta -> xorg-server)
    [2009-08-24 14:12:27] coreutils (nvidia -> nvidia-utils-beta -> xorg-server -> openssl -> perl)

  • How can I rebuild the iPhoto database?

    Twice I have received message about my thumbnails and permissions needed to be worked on.  The first time the "Genius" did a "rebuild" and that worked for a while.  How do I do a rebuild?

    The format is the drive - to have the iphoto library on it it must be Mac OS extended (journaled) - in the finder fight click on the drive and get info - the info window gives the format
    And please explain the two new variables you just introduces without giving a single answer to  my preious questions
    it has a very poor connector.
    I have copied all photo's back to the MAC hard drive.
    and please answer
    What version of iPhoto? Is OS X 10.6.3 as you state correct?
    Remember we can not see you nor read your mind - I ask three questions - you have not answer a single one yet - without answers it is not possible to help
    LN

Maybe you are looking for

  • Can no longer connect to networks

    I have a C55D-B5242 and am suddenly having issues connecting to wireless networks. This worked fine until a few days ago and now will not connect. The only message it says is "can not connect". Trouble shooting does nothing. Connected through an ethe

  • Displaying documents in 'Comments' section of IE on query

    Hi; When opening a query in Internet Explorer there appears buttons at the top of the page.  These buttons are New Analysis, Open, Save As, Information and Comments. When the user clicks on the Comments he can store (upload or add formatted text) doc

  • Solaris 8 ufsrestore issues

    Hello all, this is my first post here. I am experiencing a strange issue when attempting to do a ufsrestore of an entire backed up OS (Sol 8) The restore goes fine but some time after the new server is up and running I start getting these errors; # J

  • Manugistics to IDOC scenario

    hello all, We have a scenario where we are working with Manugistics database. Once the sales orders are posted into Manugistics thru XI, Manugistics (transport & planning system) plans the delv and shipping and that information should be available in

  • CUA history for child systems

    Hi all I have seen quite a few forum entries about change history and tables to see the mapping of roles to users, such as: Table AGR_USERS (actual assignments) Table USLA04 (actual assignments in a CUA central system) SUIM report RSSCD100_PFCG for v