Zirak / pkgfs

1 stars 0 forks source link

Recursive uninstall flag #9

Open Zirak opened 9 years ago

Zirak commented 9 years ago

Pacman offers a way to uninstall a package alongside its dependencies which were not explicitly installed: pacman -Rs something

From googling around, apt-get and yum don't have that option but instead have a separate autoremove command.

It could be useful to have this as a flag: /pkg/installed/something/uninstall --with-deps or something along those lines.

ralt commented 9 years ago

apt-get autoremove removes everything that isn't needed though, like older kernel versions that were upgraded. It can't be used like this.

Let me sit on it and think about it.

ralt commented 9 years ago

As seen together, apt does offer a way to remove dependencies with a package, so the technical issue is solved.

However, personally, I don't have any reason to keep the dependencies when I remove a package, so I was thinking that this should be the default behavior. Thoughts?

Zirak commented 9 years ago

Hurray! Hopefully other package managers have it as well.

Yes, you're right, it should be the default behaviour with a flag to disable it, perhaps uninstall --keep-deps