LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2012, 08:42 AM   #1
dflyguy
LQ Newbie
 
Registered: Jun 2012
Posts: 15

Rep: Reputation: Disabled
Question 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??
 
Old 11-15-2012, 08:56 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,543
Blog Entries: 51

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606
For configuring services try chkconfig or ntsysv?
 
Old 11-15-2012, 09:00 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
 
Old 11-15-2012, 09:04 AM   #4
dflyguy
LQ Newbie
 
Registered: Jun 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
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?
 
Old 11-15-2012, 09:10 AM   #5
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,735
Blog Entries: 3

Rep: Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629
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.
 
Old 11-15-2012, 09:11 AM   #6
dflyguy
LQ Newbie
 
Registered: Jun 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
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!
 
Old 11-15-2012, 09:14 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Quote:
Originally Posted by dflyguy View Post
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)
 
Old 11-15-2012, 09:15 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Quote:
Originally Posted by dflyguy View Post
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.
 
Old 11-15-2012, 09:38 AM   #9
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,735
Blog Entries: 3

Rep: Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629Reputation: 629
Quote:
Originally Posted by dflyguy View Post
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.
 
Old 11-15-2012, 09:40 AM   #10
dflyguy
LQ Newbie
 
Registered: Jun 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Total agree with you guys, guess I was just been lazy

Good sticks to wake up, thanks guys!
 
  


Reply

Tags
configuring, dpkg, packages, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no package 'OpenSSL ' found [CentOS] amanacare Linux - Server 4 06-26-2012 03:20 AM
[SOLVED] synaptic package manager for centos 5.5 arun5002 Linux - Server 2 09-02-2011 04:22 AM
how to reconfigure packages from gslapt package manager? wakkana12 Slackware 1 07-05-2010 02:39 AM
CentOS 5.4 Package Server athomas Linux - Server 1 05-03-2010 10:29 AM
Package manager for CentOS custangro Linux - Newbie 2 01-23-2007 06:16 PM


All times are GMT -5. The time now is 10:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration