Hello
What exactly is the difference (if any) between yum remove and yum erase?
If there is a difference why is it not explained in the man/help documentation?
If there is no difference why is not one of the options removed?
Alexander
On 06/23/2010 11:45 AM, Alexander Volovics wrote:
Hello
What exactly is the difference (if any) between yum remove and yum erase?
If there is a difference why is it not explained in the man/help documentation?
If there is no difference why is not one of the options removed?
Alexander
According to yum man page: NO
$man yum
*remove* or *erase* Are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed.
regards, _Krishna
On Wed, Jun 23, 2010 at 4:15 PM, Alexander Volovics a.volovic@upcmail.nlwrote:
Hello
What exactly is the difference (if any) between yum remove and yum erase?
If there is a difference why is it not explained in the man/help documentation?
If there is no difference why is not one of the options removed?
Alexander
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
No
You can also try 'info yum'
Krishna
On Wed, Jun 23, 2010 at 5:11 PM, Alexander Volovics a.volovic@upcmail.nlwrote:
*remove* or *erase* are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed.
I know. But that is not what I asked.
Thanks, Alexander
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Alexander
On 06/23/2010 01:52 PM, Alexander Volovics wrote:
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Alexander
I thinks that "|" char means "OR" "Synonym", this is common convention in manpage and computer documents in general.
man yum
[...]
remove | erase package1 [package2] [...]
[...]
On Wed, Jun 23, 2010 at 06:24:57PM +0530, Rahul Sundaram wrote:
On 06/23/2010 06:22 PM, Alexander Volovics wrote:
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Erase is just a alias to remove. Zero differences.
Again thanks Rahul. Maybe the developers should remove this 'redundancy'. Including both does suggest there might be a differrence.
Alexander
On 06/23/2010 06:30 PM, Alexander Volovics wrote:
On Wed, Jun 23, 2010 at 06:24:57PM +0530, Rahul Sundaram wrote:
On 06/23/2010 06:22 PM, Alexander Volovics wrote:
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Erase is just a alias to remove. Zero differences.
Again thanks Rahul. Maybe the developers should remove this 'redundancy'. Including both does suggest there might be a differrence.
Alexander
In most cases, this is done to maintain backward compatibility.
Rahul
On Wed, Jun 23, 2010 at 8:00 AM, Alexander Volovics a.volovic@upcmail.nlwrote:
On Wed, Jun 23, 2010 at 06:24:57PM +0530, Rahul Sundaram wrote:
On 06/23/2010 06:22 PM, Alexander Volovics wrote:
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Erase is just a alias to remove. Zero differences.
Again thanks Rahul. Maybe the developers should remove this 'redundancy'. Including both does suggest there might be a differrence.
I agree. This can certainly be a cause for confusion for users coming from Debian (or Ubuntu, etc) where there's a distinct difference between erase and purge. It seems yum's interpretation of either remove or erase is the same as apt's purge option, while apt's erase option ... isn't an option with yum.
erase - Remove all package files saves those that are marked as configuration, allowing the administrator to reinstall the package later with configuration already in place.
purge - Completely remove all package files, including those marked as configuration files.
On 06/23/2010 08:00 AM, Alexander Volovics wrote:
On Wed, Jun 23, 2010 at 06:24:57PM +0530, Rahul Sundaram wrote:
On 06/23/2010 06:22 PM, Alexander Volovics wrote:
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Erase is just a alias to remove. Zero differences.
Again thanks Rahul. Maybe the developers should remove this 'redundancy'. Including both does suggest there might be a differrence.
Alexander
I think they should be left. While having both might suggest a difference, reading the man page should clear it up. You would have to read the man page (or info file) to find out if there is a difference. It does require you to understand man file conventions, but you should learn them anyway.
Just a side note - if you run "yum --help" it does not show the remove command.
Mikkel
Christofer C. Bell wrote:
I agree. This can certainly be a cause for confusion for users coming from Debian (or Ubuntu, etc) where there's a distinct difference between erase and purge. It seems yum's interpretation of either remove or erase is the same as apt's purge option, while apt's erase option ... isn't an option with yum.
erase - Remove all package files saves those that are marked as configuration, allowing the administrator to reinstall the package later with configuration already in place.
purge - Completely remove all package files, including those marked as configuration files.
I disagree. The documentation is clear and, as Rahul pointed out, removing a command would break backwards compatibility.
Yum is also careful not to completely remove configuration files that have been edited. Upon package removal, any configuration files that have been edited are saved with ".rpmsave" appended to the original filename. Apt may provide a different implementation, but the functionality itself is very similar.
Regards,
Matthew Roth InterMedia Marketing Solutions Software Engineer and Systems Developer
On Wed, 2010-06-23 at 16:50 +0530, Krishna Chandra Prajapati wrote:
remove or erase Are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed.
But this relation is not reflexive.Just because program A is dependent on program B being present, it does not mean that there are not uses for B other than program A. meld is a good example that is very useful on its own. Why should yum remove it when A is removed.
-- ======================================================================= Don't worry. Life's too long. -- Vincent Sardi, Jr. ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
On Jun 24, 2010, at 6:33 AM, Aaron Konstam wrote:
On Wed, 2010-06-23 at 16:50 +0530, Krishna Chandra Prajapati wrote:
remove or erase Are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed.
But this relation is not reflexive.Just because program A is dependent on program B being present, it does not mean that there are not uses for B other than program A. meld is a good example that is very useful on its own. Why should yum remove it when A is removed.
Just in case anyone is still confused, that's not what the thread was about.
Mikkel and Rahul have pointed out that the redundancy is for backwards compatibility, but I find I'm not sure which is the legacy command.
The man pages seem to focus more on remove, whereas yum --help does not mention remove the remove alias at all. And there is not "grouperase" corresponding to "groupremove"
If there is a bug here, would it be the inconsistency between the -- help option and the man pages, and the lack of deprecation notice for the legacy command? (Or conversely, the explicit mention that the alias is there for backwards- or cross-compatibility?)
On Wed, Jun 23, 2010 at 4:33 PM, Aaron Konstam akonstam@sbcglobal.netwrote:
On Wed, 2010-06-23 at 16:50 +0530, Krishna Chandra Prajapati wrote:
remove or erase Are used to remove the specified packages from the system
as well as removing any
packages which depend on the package being removed.But this relation is not reflexive.Just because program A is dependent on program B being present, it does not mean that there are not uses for B other than program A. meld is a good example that is very useful on its own. Why should yum remove it when A is removed.
Either you misunderstood what Krishna said or I'm misunderstanding what you're saying. Krishna is saying that if A depends on B being present, and you remove B, then A will also be removed (since B is no longer present). If you remove A, B will remain since nothing it depends on is being removed.
On Wed, 2010-06-23 at 21:14 -0500, Christofer C. Bell wrote:
On Wed, Jun 23, 2010 at 4:33 PM, Aaron Konstam akonstam@sbcglobal.net wrote: On Wed, 2010-06-23 at 16:50 +0530, Krishna Chandra Prajapati wrote: > remove or erase > Are used to remove the specified packages from the system as well as removing any > packages which depend on the package being removed. >
But this relation is not reflexive.Just because program A is dependent on program B being present, it does not mean that there are not uses for B other than program A. meld is a good example that is very useful on its own. Why should yum remove it when A is removed.Either you misunderstood what Krishna said or I'm misunderstanding what you're saying. Krishna is saying that if A depends on B being present, and you remove B, then A will also be removed (since B is no longer present). If you remove A, B will remain since nothing it depends on is being removed.
--
Chris
I think we are all saying the same thing. -- ======================================================================= QOTD: "I'll listen to reason when it comes out on CD." ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
Alexander Volovics wrote:
On Wed, Jun 23, 2010 at 06:24:57PM +0530, Rahul Sundaram wrote:
On 06/23/2010 06:22 PM, Alexander Volovics wrote:
'info yum' does not supply any more details with respect to remove/erase then 'man yum'.
Erase is just a alias to remove. Zero differences.
Again thanks Rahul. Maybe the developers should remove this 'redundancy'. Including both does suggest there might be a differrence.
Removing something which costs nothing to keep and which may break scripts and user habit is making enemies to no gain. And wasting time and bandwidth discussing why a lot of work and training effort was generated with no visible gain.
As for them being the same, I worked with a client tool which used erase, delete, and remove to get rid of objects, each with different implied options and side effects. Even people who has used the tool for years had to look up the nuances. There was a mnemonic to help remember, but it was amazingly obscene and not something you could give people as a usage aid, and the socially correct one was hard to remember.
Aaron Konstam wrote:
On Wed, 2010-06-23 at 21:14 -0500, Christofer C. Bell wrote:
On Wed, Jun 23, 2010 at 4:33 PM, Aaron Konstam akonstam@sbcglobal.net wrote:
[__stuff__]
I think we are all saying the same thing.
In such a way that it sounds as though we disagree... :-(