Operating System - HP-UX
1833875 Members
1860 Online
110063 Solutions
New Discussion

Re: How to remove deleted s/w from the swlist output command

 
Kenneth_18
Frequent Advisor

How to remove deleted s/w from the swlist output command

Hi,

When I did a swlist, I keep seeing some prodicts/packages that are no longer existing. How do I remove the entries of the products/packages so that it would not show up again when I do a swlist.

Thanks
6 REPLIES 6
Michael Tully
Honored Contributor

Re: How to remove deleted s/w from the swlist output command

The correct way to remove software that is listed in the 'swlist' output is to use the interactive part of 'swremove'

# swremove

The screen will open up and then you can select which product(s) you would like to remove. Be aware that some products do have kernel drivers and so the system may need to be re-booted.
Anyone for a Mutiny ?
Kenneth_18
Frequent Advisor

Re: How to remove deleted s/w from the swlist output command

Hi Michael,

I've already tried both command line and swremove gui but still when I try to remove the name of the non-existing software, it always fails analysis. What file is the swlists, swremove referring to? Maybe I could delete the entries from that file.

Thanks
Michael Tully
Honored Contributor

Re: How to remove deleted s/w from the swlist output command

What is being reported in the 'failed analysis'?

From what I understand 'swremove' uses options reported by 'swlist' to display the products onto the screen.
Anyone for a Mutiny ?
Kenneth_18
Frequent Advisor

Re: How to remove deleted s/w from the swlist output command

Thanks Michael for pointing to the right direction. When I checked the log for swremove, it was reading the "checkremove" script and this was the one causing the failed analysis since the s/w is not existing anymore. I just deleted the file and swremove worked.
Kellogg Unix Team
Trusted Contributor

Re: How to remove deleted s/w from the swlist output command

Hi Ken,

If you upgrade the OS, say from 10.20 to 11.0, you will see that swlist might show you some filesets of 10.20 version. In that case, you can unregister the software by running "swreg -u" on that product. I was told by HP Support that although product has been written by new binaries, the information (in IPD) stays.

...Manjeet
work is fun ! (my manager is standing behind me!!)
Vincente Fernandes
Valued Contributor

Re: How to remove deleted s/w from the swlist output command

execute a "swremove -u package/prodcut name" this should work for u as i am using it and it works.