| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-15-2012, 08:42 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2012
Posts: 15
Rep: 
|
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??
|
|
|
|
11-15-2012, 08:56 AM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
For configuring services try chkconfig or ntsysv?
|
|
|
|
11-15-2012, 09:00 AM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
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.
|
|
|
|
11-15-2012, 09:04 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2012
Posts: 15
Original Poster
Rep: 
|
Quote:
Originally Posted by unSpawn
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?
|
|
|
|
11-15-2012, 09:10 AM
|
#5
|
|
Senior Member
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 1,390
Rep: 
|
|
|
|
|
11-15-2012, 09:11 AM
|
#6
|
|
LQ Newbie
Registered: Jun 2012
Posts: 15
Original Poster
Rep: 
|
Quote:
Originally Posted by Habitual
|
Thanks,
more reasons to love debian!
|
|
|
|
11-15-2012, 09:14 AM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
Quote:
Originally Posted by dflyguy
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)
|
|
|
|
11-15-2012, 09:15 AM
|
#8
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
Quote:
Originally Posted by dflyguy
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.
|
|
|
|
11-15-2012, 09:38 AM
|
#9
|
|
Senior Member
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 1,390
Rep: 
|
Quote:
Originally Posted by dflyguy
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.
|
|
|
|
11-15-2012, 09:40 AM
|
#10
|
|
LQ Newbie
Registered: Jun 2012
Posts: 15
Original Poster
Rep: 
|
Total agree with you guys, guess I was just been lazy
Good sticks to wake up, thanks guys!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:30 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|