[opensuse] How do I delete a programs and all it's configuration files?
What's openSUSE's policy in regards to config files? Does removing programs with yast/zipper also remove it's config files by default? And if not how do I achieve this? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-10-27 at 00:19 +0200, Aniruddha wrote:
What's openSUSE's policy in regards to config files? Does removing programs with yast/zipper also remove it's config files by default? And if not how do I achieve this?
AFAIK, they are not removed. At least, they are not removed if they were modified. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHIm/jtTMYHG2NR9URAtksAJ49PH7kRnBDqNZIZcLzfKOrzbPKyACfVpUi a7com3dVq3pC9dQ64dBcaI8= =UZt5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-10-27 at 00:53 +0200, Carlos E. R. wrote:
The Saturday 2007-10-27 at 00:19 +0200, Aniruddha wrote:
What's openSUSE's policy in regards to config files? Does removing programs with yast/zipper also remove it's config files by default? And if not how do I achieve this?
AFAIK, they are not removed. At least, they are not removed if they were modified.
- -- Cheers, Carlos E. R.
Configuration files that have been determined by RPM database to have been modified are saved with a .rpmsave extension. To get a list of configuration files associated with an installed package, run the command 'rpm -qc package_name'. As additional aside, when you are updating a package (i.e., rpm -U package_name), modified configuration files are given the .rpmorig or .rpmsave extension. You will then need to copy any important parts of those configuration files into the newly installed configuration file. One more thing: the -U (upgrade) and -F (freshen) are both upgrade options, except that Freshen will validate that the package does indeed exist already on the system. If the package doesn't exist, it will stop the installation process. -U will install as new if the package didn't already exist on the system. -- ---Bryen--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:26 -0500, Bryen wrote:
To get a list of configuration files associated with an installed package, run the command 'rpm -qc package_name'.
As additional aside, when you are updating a package (i.e., rpm -U package_name), modified configuration files are given the .rpmorig or .rpmsave extension. You will then need to copy any important parts of those configuration files into the newly installed configuration file.
One more thing: the -U (upgrade) and -F (freshen) are both upgrade options, except that Freshen will validate that the package does indeed exist already on the system. If the package doesn't exist, it will stop the installation process. -U will install as new if the package didn't already exist on the system.
-- ---Bryen---
Thanks! The 'rpm -qc package_name' is very handy. I notice though that I have difficulties to grasp rpm vs zypper vs yast2. openSUSE seems to offer 3 tools that mostly do the same, but not always. Sometimes you need rpm other times you need zypper. Where can I find more info to put these tools in (the openSUSE) perspective? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
Thanks! The 'rpm -qc package_name' is very handy. I notice though that I have difficulties to grasp rpm vs zypper vs yast2. openSUSE seems to offer 3 tools that mostly do the same, but not always. Sometimes you need rpm other times you need zypper. Where can I find more info to put these tools in (the openSUSE) perspective?
Hm.. i'm not sure if it is explicitly stated somewhere in the wiki, but here is how it works: zypper and YaST use the same library (libzypp), the difference is just that it is a CLI vs. GUI. Thus they share repository definition files (/etc/zypp/repos.d/*.repo), zypp.conf file, meta-data cache database, etc. So unless you need to do something special, it's just a matter of preference whether you choose a GUI or a CLI. Libzypp (and thus both zypper and YaST) uses rpm to actually install the stuff. It is a higher level package manager which takes care of the dependencies and provides other functionalities. It's just like apt-get vs. dpkg in debian. hth Jano -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-10-27 at 12:21 +0200, Jan Kupec wrote:
Aniruddha wrote:
Thanks! The 'rpm -qc package_name' is very handy. I notice though that I have difficulties to grasp rpm vs zypper vs yast2. openSUSE seems to offer 3 tools that mostly do the same, but not always. Sometimes you need rpm other times you need zypper. Where can I find more info to put these tools in (the openSUSE) perspective?
Hm.. i'm not sure if it is explicitly stated somewhere in the wiki, but here is how it works:
zypper and YaST use the same library (libzypp), the difference is just that it is a CLI vs. GUI. Thus they share repository definition files (/etc/zypp/repos.d/*.repo), zypp.conf file, meta-data cache database, etc. So unless you need to do something special, it's just a matter of preference whether you choose a GUI or a CLI.
Libzypp (and thus both zypper and YaST) uses rpm to actually install the stuff. It is a higher level package manager which takes care of the dependencies and provides other functionalities. It's just like apt-get vs. dpkg in debian.
hth
Jano
Thanks! That is a very good explanation, now I understand :D -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-10-26 at 18:26 -0500, Bryen wrote:
Configuration files that have been determined by RPM database to have been modified are saved with a .rpmsave extension.
-- ---Bryen---
Where are these saved? How do I manage (delete) these saves? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-10-27 at 11:52 +0200, Aniruddha wrote:
On Fri, 2007-10-26 at 18:26 -0500, Bryen wrote:
Configuration files that have been determined by RPM database to have been modified are saved with a .rpmsave extension.
In place, ie, where they were. There is a script (rcrpmconfigcheck) that runs on boot that searches for "*.rpmnew" and "*.rpmsave" files. The list is saved in /var/adm/rpmconfigcheck - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHIw9ftTMYHG2NR9URAvKzAJ4nkOi8WogGUcaCpJtj4/0dNDHffQCfd0pX zj4utJjr4KPhRKLA9xCchgs= =4Zxp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-10-27 at 00:53 +0200, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2007-10-27 at 00:19 +0200, Aniruddha wrote:
What's openSUSE's policy in regards to config files? Does removing programs with yast/zipper also remove it's config files by default? And if not how do I achieve this?
AFAIK, they are not removed. At least, they are not removed if they were modified.
- -- Cheers, Carlos E. R.
And how do I make sure this does happen? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-10-27 at 11:48 +0200, Aniruddha wrote:
What's openSUSE's policy in regards to config files? Does removing programs with yast/zipper also remove it's config files by default? And if not how do I achieve this?
AFAIK, they are not removed. At least, they are not removed if they were modified.
And how do I make sure this does happen?
What do you want to do, remove them? That has to be done manually. For instance, if you install mysql, create some databases, then remove mysql, the databases remain. You might want to reinstall them later. In any case, removing them automatically would be a bad idea, could cause accidents. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHIxAQtTMYHG2NR9URAlMPAKCTAN5ySN86qZ+e4sanDKjzO+h9rACfXW9e Acrp6kvM/0K91IjM8nqXTrw= =A94g -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
The Saturday 2007-10-27 at 11:48 +0200, Aniruddha wrote:
What's openSUSE's policy in regards to config files? Does removing programs with yast/zipper also remove it's config files by default? And if not how do I achieve this?
AFAIK, they are not removed. At least, they are not removed if they were modified.
And how do I make sure this does happen?
What do you want to do, remove them? That has to be done manually.
For instance, if you install mysql, create some databases, then remove mysql, the databases remain. You might want to reinstall them later. In
This is somewhat different - the database files are actually user data, not config files. They should never ever be erased automatically. And also it is not possible, since you can put your user data anywhere, package management does not know about them. But as for e.g. /etc/my.cnf (most probably modified), it would be very handy if we had a possibility to remove them automatically (like aptitude purge <package> or apt-get --purge remove <package> does). Does rpm support something like this? Jano
any case, removing them automatically would be a bad idea, could cause accidents.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-10-27 at 12:30 +0200, Jan Kupec wrote:
This is somewhat different - the database files are actually user data, not config files. They should never ever be erased automatically. And also it is not possible, since you can put your user data anywhere, package management does not know about them.
But as for e.g. /etc/my.cnf (most probably modified), it would be very handy if we had a possibility to remove them automatically (like aptitude purge <package> or apt-get --purge remove <package> does). Does rpm support something like this?
Jano
Your absolutely right. Thanks for clarifying that. -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-10-27 at 12:16 +0200, Carlos E. R. wrote:
AFAIK, they are not removed. At least, they are not removed if they were modified.
And how do I make sure this does happen?
What do you want to do, remove them? That has to be done manually.
For instance, if you install mysql, create some databases, then remove mysql, the databases remain. You might want to reinstall them later. In any case, removing them automatically would be a bad idea, could cause accidents.
I understand that. That's why this isn't the default option. However almost every distribution offers you the possibility to also completely remove the configuration files. Isn't there such a command in openSUSE? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-10-27 at 12:34 +0200, Aniruddha wrote:
What do you want to do, remove them? That has to be done manually.
For instance, if you install mysql, create some databases, then remove mysql, the databases remain. You might want to reinstall them later. In any case, removing them automatically would be a bad idea, could cause accidents.
I understand that. That's why this isn't the default option. However almost every distribution offers you the possibility to also completely remove the configuration files. Isn't there such a command in openSUSE?
Dunno. It's a feature I don't miss. If wanted, the developpers can create an uninstall script that runs automatically when the rpm is uninstalled, I think. You can also list the configuration files (rpm -c), and possibly write a script to remove them. I can not tell categorically if config files are always removed or not. I'm not certain. I remember time ago that when a package was removed yast created a backup archive of changed configuration files, stored somewhere under /var. I'd have to try removing something to know more. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHI0o8tTMYHG2NR9URAmRJAJ4tS1FYOrufvHN6YRyqiDiejVqh6wCfRu+d oeByh2MdjQ0+FFGty6sbvxw= =lXJx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Aniruddha
-
Bryen
-
Carlos E. R.
-
Jan Kupec