> From: "Glenn Goodspeed" <[EMAIL PROTECTED]> > Subject: Uninstalling Non-rpm Things > > > Guys - Here's my dumb question for the day. If I install a program by > using > > "make" and "make install", is there a simple way to uninstall? I've > > installed a later version of a program and need to install the earlier > > version instead. Thanks for any ideas. -Glenn.
A simple way to uninstall is to always build RPMs before installing. You can easily build an RPM in a one-line command. My approach is to (when I use "sudo" below, I mean "as root"): 1) wget http://www.cpan.org/authors/id/S/SH/SHARRISON/make_rpm-2.0.pl 2) Read your program's README, and most of the time do something like this, rm -Rf /home/johndoe/tmpdir make PREFIX=/home/johndoe/tmpdir/usr/local sudo make install 3) Then build an RPM. cd /home/johndoe/tmpdir find /home/johndoe/tmpdir/usr/local | sudo perl make_rpm-2.0.pl \ YourProgram 1.0 1 '' '' /home/johndoe/tmpdir 4) Remove your scratch space. sudo rm -Rf /home/johndoe/tmpdir 5) Then install. sudo rpm -Uvh YourProgram-1.0-1.i386.rpm Then, you can 6) sudo rpm -e YourProgram The admittedly bad thing about this approach is that we are not directly accounting for dependencies (please no comment). However, if the goal is to avoid having a legacy machine with a non-documented filesystem, then, if you always build RPMs (with the one-line command described in step #3), you will always have an easy way of cleaning things up. Regards, Scott -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list