LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to reconfigure package on Centos (http://www.linuxquestions.org/questions/linux-server-73/how-to-reconfigure-package-on-centos-4175437271/)

dflyguy 11-15-2012 08:42 AM

How to reconfigure package on Centos
 
Hey guys,
I use this utility dpkg-reconfigure to configure already installed packages on Debian Ubuntu. I was wondering what to use for this purpose on Centos??

unSpawn 11-15-2012 08:56 AM

For configuring services try chkconfig or ntsysv?

acid_kewpie 11-15-2012 09:00 AM

well rpm packages don't natively ask any questions, so I don't see what's to reconfigure. Not something I've ever needed to do. You can relocate *some* packages with the --relocate option to rpm if that's relevant.

dflyguy 11-15-2012 09:04 AM

Quote:

Originally Posted by unSpawn (Post 4830050)
For configuring services try chkconfig or ntsysv?

Actually, I'd wanted to reconfigure sendmail - the package, not the service.

Quote:

well rpm packages don't natively ask any questions
Guess that answers it, means i need to edit the config file in the /etc/ directory, its strange though because when I do yum install [package], it installs with certain defaults, thought it should ask for my preferences.

Either-ways, this is what I want to do, I have installed sendmail and I want to change the domain where the emails come from by default it just takes the hostname, anyone know where to change to manually specify a domain?

Habitual 11-15-2012 09:10 AM

http://www.centos.org/docs/2/rhl-rg-...-sendmail.html or http://www.centos.org/docs/5/html/5....l-default.html

There is no "reconfigure" option under CentOS package management tools.

dflyguy 11-15-2012 09:11 AM

Quote:

Originally Posted by Habitual (Post 4830060)
http://www.centos.org/docs/2/rhl-rg-...-sendmail.html or http://www.centos.org/docs/5/html/5....l-default.html

There is no "reconfigure" option under CentOS package management tools.

Thanks,

more reasons to love debian!

acid_kewpie 11-15-2012 09:14 AM

Quote:

Originally Posted by dflyguy (Post 4830058)
Either-ways, this is what I want to do, I have installed sendmail and I want to change the domain where the emails come from by default it just takes the hostname, anyone know where to change to manually specify a domain?

Just edit the /etc/mail/sendmail.mc file directly (although postfix is much nicer to configure)

acid_kewpie 11-15-2012 09:15 AM

Quote:

Originally Posted by dflyguy (Post 4830064)
Thanks,

more reasons to love debian!

No, i'd totally reject that one. You may be able to automate a few arbitrary basics, but you can't cover everything, so you end up in a weird state of having multiple ways to do different levels of config. No thanks. just edit the config properly.

Habitual 11-15-2012 09:38 AM

Quote:

Originally Posted by dflyguy (Post 4830064)
Thanks,

more reasons to love debian!

reconfigure is no substitute for knowing what|where| and how to do system administration.
It actually can inhibit learning. :)
Anything reconfigure can do for you, you can do for yourself.

reconfigure "can" actually help restore things to default settings, but I have seen a couple of packages in Debian-derivatives that actually been made worse by reconfigure.

Make a cp of /etc/mail/sendmail.mc and edit the /etc/mail/sendmail.mc as Chris suggested.

Don't forget to restart sendmail after making changes to the /etc/mail/sendmail.mc file.

Good luck.

dflyguy 11-15-2012 09:40 AM

Total agree with you guys, guess I was just been lazy :)

Good sticks to wake up, thanks guys!


All times are GMT -5. The time now is 09:42 AM.