Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

finding files accociated with an install

13 views
Skip to first unread message

ian diddams

unread,
Jan 24, 2013, 8:39:40 AM1/24/13
to
Hi,

system = centos
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-
noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-
noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Release: 5.6
Codename: Tikanga


I have inhertied a couple of servers.

Live server runs PHP version 5.1.6 build date Nov 13 2010 16:05:36
Dev server runs PHP version 5.1.6 build date May 3 2012 17:38:23


Now - I am quite happy that different build dates actually mean
nothing aside from that was the date that the software was built.
However, the developers assure me that this is the only difference
between the two systems and so must be the issue.

So - I am requested to install the same PHP as on the live server,
onto the dev server. I (and nobody I talk to) has any knowledge of the
origins of these PHPs. So I have no idea if they were from an rpm, a
yum install, or were built from source.

Consequently the on ly solution my coleagues and I can come up with
is

* identify ALL files connected to the PHP installation on the live
server
* archive their equivalents on the dev server
* copy the files from the live server to the dev server

and see if that provides the solution to the developers.

I appreciate there are inherrent risks involved but we cannot think of
another way to appraoch this.

So my question/request for advice is twofold

1) how can we ascertain all the files involved in the live server's
installation?

2) can anybody think of another way to do what we have been requested
to do i.e. provide EXACTLY teh same PHP inmstall on the live server
onto the dev server.

cheers

ian

HASM

unread,
Jan 28, 2013, 12:04:33 AM1/28/13
to
ian diddams <iandid...@googlemail.com> writes:

> 1) how can we ascertain all the files involved in the live server's
> installation?
>
> 2) can anybody think of another way to do what we have been requested
> to do i.e. provide EXACTLY teh same PHP inmstall on the live server
> onto the dev server.

Centos is rpm based, thus
man rpm
e.g.
rpm -q -a
will list all packages installed
rpm -q -l <package>
will list the contents of each package
rpm -V <package>
will verify whether some of them changed
rpm -q --whatprovides /path/to/file
will tell you which packages installed that file

-- HASM

unruh

unread,
Jan 28, 2013, 4:48:55 PM1/28/13
to
On 2013-01-28, HASM <net...@invalid.com> wrote:
> ian diddams <iandid...@googlemail.com> writes:
>
>> 1) how can we ascertain all the files involved in the live server's
>> installation?
>>
>> 2) can anybody think of another way to do what we have been requested
>> to do i.e. provide EXACTLY teh same PHP inmstall on the live server
>> onto the dev server.
>
> Centos is rpm based, thus
> man rpm
> e.g.
> rpm -q -a
> will list all packages installed
> rpm -q -l <package>
> will list the contents of each package

rpm -qal
will list all files installed.

> rpm -V <package>
> will verify whether some of them changed

rpm -Va
will verfiy all packages.
rpm -Va|grep '^??5'
will list all files whose md5 hash has changed since installation for
example.
0 new messages