LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 07-10-2009, 08:13 AM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 201

Rep: Reputation: 41
remove avahi


I have several RHEL 5.3 servers I am currently setting up. I want to remove the avahi rpms for two reasons. 1, I am using static ips. 2, the group id used by avahi conflicts with the project's software group id. I don't want to have the software with different group ids on different systems. I did an rpm -q -a | grep avahi and see:
Code:
avahi-0.6.16-1.el5
avahi-glib-0.6.16-1.el5
avahi-0.6.16-1.el5
avahi-compat-libdns_sd-0.6.16-1.el5
avahi-glib-0.6.16-1.el5
First, why are two of the packages listed twice?
I then did an rpm -q --whatrequires ... and got that the avahi-glib and avahi-compat-libdns_sd depend on avahi, but did not get any other rpms. I next tried rpm -e --test avahi-compat-libdns_sd and got back a failed dependency: libdns_sd.so.1 is needed by cups.

Second, why didn't cups show up when I queried for whatrequires?

Any advice?

Thanks!
 
Old 07-12-2009, 08:00 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Quote:
Originally Posted by bradvan View Post
the group id used by avahi conflicts with the project's software group id. I don't want to have the software with different group ids on different systems.
Why not move the project's software group Id instead?


Quote:
Originally Posted by bradvan View Post
First, why are two of the packages listed twice?
I don't know. Maybe use a query format that provides more than "%{name}%%{version}-%{release}"?


Quote:
Originally Posted by bradvan View Post
I then did an rpm -q --whatrequires ... and got that the avahi-glib and avahi-compat-libdns_sd depend on avahi, but did not get any other rpms. I next tried rpm -e --test avahi-compat-libdns_sd and got back a failed dependency: libdns_sd.so.1 is needed by cups. Second, why didn't cups show up when I queried for whatrequires?
You didn't tell us what you "whatrequired" for.
 
Old 07-13-2009, 05:38 AM   #3
bradvan
Member
 
Registered: Mar 2009
Posts: 201

Original Poster
Rep: Reputation: 41
Because there are existing systems with the project software group ID. I'm not going to change all of them for a piece of software we don't even need.
 
Old 07-13-2009, 07:59 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Thanks for answering one out of three.
 
Old 07-14-2009, 12:04 AM   #5
viGeek
LQ Newbie
 
Registered: Jul 2009
Posts: 28

Rep: Reputation: 17
Why not just disable avahi from startup...

chkconfig avahi off
chkconfig avahi-daemon off
 
Old 07-14-2009, 12:15 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you have 32 and 64 bit versions installed perhaps?

yum list avahi may help.

Why don't you try

yum remove avahi

and have a careful look at what it's saying it will remove before hitting "yes"
 
Old 07-14-2009, 06:00 AM   #7
bradvan
Member
 
Registered: Mar 2009
Posts: 201

Original Poster
Rep: Reputation: 41
Yum won't work because there is no yum server on this network (it is not connected to the Internet). Just disabling the the service is a good idea, but it still doesn't get rid of the group id. I think the 64 bit question hits it on the head why some of the packages were listed twice - once for 32 bit and once for 64 bit. I checked the entire file system to see if the group-id was used anywhere. It wasn't so, I tried to delete it. The system wouldn't let me because it was the primary group for the avhai-autoipd account. I then checked the entire system to see if that userid was used anywhere. It wasn't. So, I delete the user account which also deleted the group id. The package is still installed but disabled, so the dependent packages are happy. Thanks for the suggestions, they helped push me in the right direction!
 
Old 07-14-2009, 05:31 PM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You don't need a connection to remove packages with yum
 
Old 07-15-2009, 01:05 PM   #9
bradvan
Member
 
Registered: Mar 2009
Posts: 201

Original Poster
Rep: Reputation: 41
Sorry, my lack of knowledge of yum. I'll take a look. The quick answer is that removing the user account solved me problem. In the long run, I like to remove packages that aren't being used. Thanks for the input!
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zeroconf/Avahi needed? johncc Linux - Networking 2 01-28-2009 09:18 AM
How To Remove 'avahi'? wkuballa Linux - Networking 9 11-21-2008 02:06 PM
Basic Avahi Question Linux31 Linux - Networking 2 04-22-2007 06:31 AM
Do I need avahi? billymayday Linux - Software 4 05-29-2006 04:10 PM
avahi - kernel compile nildarb Linux - Kernel 6 04-19-2006 06:58 PM


All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
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