How to find when did i install a particular application/Program on my computer

Hi,
I have a program called rpm installed on my MAC.
Here is the output of some commands on my Mac :
ls -l `which rpm`
lrwxr-xr-x  1 robinsuri  admin  28 Oct  5 23:58 /usr/local/bin/rpm -> ../Cellar/rpm/5.4.15/bin/rpm

Open in new window


I think i installed it using brew.
I want to know on which date i installed this program ?
How can i find this out The date in the above ls -l command output is the current date only.

Thanks
Rohit BajajAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ganesh Kumar ASr Infrastructure SpecialistCommented:
Try

rpm -qi [package name] or rpm -ql (L is small case)
Rohit BajajAuthor Commented:
Hi,
That does not work.
I want to find the date when i installed rpm or say java or any other such application which i run from command line....or other way. By rpm i meant the rpm command
Ganesh Kumar ASr Infrastructure SpecialistCommented:
Try this :

 rpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release} %{installtime:date}\n' | sort -nr +1 | sed -e 's/^[^ ]* //'
Rohit BajajAuthor Commented:
I am getting an error :
DDVMACROBINSU:~ robinsuri$ rpm -qa --queryformat '%{installtime} %{name}-%{version}-%{release} %{installtime:date}\n' | sort -nr +1 | sed -e 's/^[^ ]* //'
sort: open failed: +1: No such file or directory

Open in new window

serialbandCommented:
I don't think there is a feature like that in homebrew.  The closest thing you might have is the folder date in /usr/local/Cellar.

You didn't install those packages with rpm or yum.  Those were installed with brew, a different package manager.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.