tracking application packages during installation

Posted on 2006-05-18
Last Modified: 2013-12-27
Hi experts,

Is it possibel to track packages whilst being loaded on solaris OS. The reason for this is I am trying to create a script which will find and remove these packages after an installation. I am installing an application and the uninstaller leaves alot of packages all over the show, and you have to hunt them down one by one, which takes quite some time.
Question by:mwari
    LVL 11

    Accepted Solution

    Not sure about that but I have done this in the past.

    If its and application I use
    pkginfo -c application or you can just use pkginfo which will get both system and applications.

    I output that to a file before the install
    #pkginfo -c application > before.install

    then after the install
    #pkginfo -c application > after.install

    #diff before.install after.install will gice you a list of the changes.

    You could then input the results to a scrift for removal

    Author Comment

    Jekl2000, what is "application" in pkginfo?, I am installing Sun Java ES Portal Server.  Do I put the installer name in place of application?
    e.g pkginfo -c sunportal_installer > before.install
    pkginfo -c sunportal_installer > after.install ??
    LVL 11

    Expert Comment

    No, application is a  keyword as is system. Didn't ask what version you are running. You can just do a pkginfo > before.inst and it will do the same but system and application files will be shown, which might be better anyway to see if it installs anything that might be classified as a system file.

    Author Comment

    Okay, I am running Solaris 10.

    Author Comment

    Thanx jekl2000. :-)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now