craigwblake / redline

Pure Java Rpm Library
http://redline-rpm.org
MIT License
128 stars 97 forks source link

Cannot uninstall redline generated rpm #33

Closed luchesar closed 11 years ago

luchesar commented 11 years ago

Hi there,

I am using redline ant tasks to create an rpm https://drive.google.com/file/d/0B-t-EIEZQv1AaHI5OGNGLW9veFE/edit?usp=sharing

I can successfully install it using sudo yum --nogpgcheck localinstall test-rpm-1.0.6-SNAPSHOT-1.noarch.rpm

I can see the files expanded at the right location and can verify with rpm -Vv test-rpm and 'yum list | grep test-rpm' shows installed.

Whey I try erasing it with sudo yum erase test-rpm yum would recognise the installed package and will log as if it really uninstalled it finishing with:

  Removed:
  test-rpm.noarch 0:1.0.6-SNAPSHOT-1
  Complete!

Still nothing is removed from the FS, rpm -Vv test-rpm lists all the contents and 'yum list | grep test-rpm' reports installed.

I can only uninstall the package with: sudo rpm -e --noscripts test-rpm

There are no any scripts in the rpm yet.

Thanks in advance, Lucho

luchesar commented 11 years ago

I found the problem!

It was due to building an rpm with -SNAPSHOT version. The version should not contain any '-' dash because rpm and yum are failing for some strange internal bug. So if you have the same problem you should remove the '-' from the version.

Some more rpm naming info. http://mm.uchicago.edu/2013/06/19/package-names-and-managers-for-different-linux-distribution/

luchesar commented 11 years ago

Closing down as not a problem in redline.