Ask Your Question
0

post cleanup after install

asked 2018-01-08 08:35:37 -0600

CBR gravatar image

Hello everyone,

I want to know how you are managing post install cleanups after any binary install. In my environment, we are managing java install and configuration of it using puppet. After the latest JDK install, I have 4 old versions of it which we are not going to use anymore. Is there a way to delete those using puppet ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-09 13:08:13 -0600

DarylW gravatar image

Puppet only manages what you tell it to manage. In the case of the JDK installs, if they don't explicitly replace/upgrade each other, you need to add in a statement to remove the old version.

I thought that an upgrade like JDK 1.7.1.23 to 1.7.2.34 would replace the previously, but doing an install of 1.8.1.23 would leave the 1.7.* version in place (and possibly require you to manually update the /etc/alternates/ location) to point java at the right install.

How are you managing your JDK install.. Are you using one of the 'java' modules on the forge, or are you directly managing the package? Are you installing it from a package (.deb/.rpm), or are you installing from a zip/tar file? Are you installing openjdk, or the oracle JDK?

edit flag offensive delete link more

Comments

I'm installing from a tar file that's out there on oracle website.

CBR gravatar imageCBR ( 2018-01-11 11:36:15 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-08 08:35:37 -0600

Seen: 251 times

Last updated: Jan 09