Add / Remove Solaris packages automatically


Those who deal with Solaris often require to install and uninstall packages. However, sometimes it becomes boredom to press ‘y’ or ‘yes’ every time we try to install or uninstall or remove multiple software packages. So if you are tired with pressing ‘y’ or ‘yes’ each and every time then simply pipe ‘yes’ CLI to ‘pkgrm’ or ‘pkgadd’ CLI in Solaris.
--------------------------Start Of Shell-----------------------------------
ts:~# yes | pkgadd –d.
.
.
.
ts:~#  yes | pkgrm SomeSamplePacakageName
.
.
.
--------------------------End Of Shell------------------------------------
NOTE: Use it cautiously.
That’s it.

By Mandar

No comments:

Post a Comment

    Your valuable comments are welcome. (Moderated)


Instagram