Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto unmerge apache 1.3 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 465
Location: Hokkaido Japan

PostPosted: Sat Apr 02, 2005 7:00 pm    Post subject: howto unmerge apache 1.3 [solved] Reply with quote

Hi-

I'm trying to get apache 1.3 removed from my system.
I use apache2 and don't want unecessary apache1 files laying around.

emerge search apache doesn't list apache 1.3 but apache2.

Code:

  net-www/apache
      Latest version available: 2.0.52-r1
      Latest version installed: 2.0.52-r1
      Size of downloaded files: 6,779 kB
      Homepage:    http://www.apache.org/
      Description: Apache Web Server, Version 2.0.x
      License:     Apache-2.0


The following bash shows that both executables are on my system:

Code:


hawk mysqlBackup # /usr/sbin/apache -v
Server version: Apache/1.3.32 (Unix)  (Gentoo/Linux)
Server built:   Feb 11 2005 04:38:38
hawk mysqlBackup # /usr/sbin/apache2 -v
Server version: Apache/2.0.52
Server built:   Feb 21 2005 11:29:34
hawk mysqlBackup #


hawk mysqlBackup # cat /etc/init.d/apache | grep bin
#!/sbin/runscript
        env -i PATH=$PATH PERL5LIB=PERL5LIB /sbin/start-stop-daemon -o --quiet \
                --start --startas /usr/sbin/apache \
        /usr/sbin/apachectl stop >/dev/null
        /usr/sbin/apache -t ${APACHE_OPTS} &>/dev/null
                /usr/sbin/apache -t ${APACHE_OPTS}
hawk mysqlBackup # cat /etc/init.d/apache2 | grep bin
#!/sbin/runscript
        /usr/sbin/apache2 -t ${APACHE2_OPTS} 1>/dev/null 2>&1
                /usr/sbin/apache2 -t ${APACHE2_OPTS}
        env -i PATH=$PATH /sbin/start-stop-daemon --quiet \
                --start --startas /usr/sbin/apache2 \
        /usr/sbin/apache2ctl stop >/dev/null
        /usr/sbin/apache2 ${APACHE2_OPTS} -k ${RESTARTSTYLE}
hawk mysqlBackup # ls /usr/sbin/ | grep apache
apache
apache2
apache2ctl
apache2logserverstatus
apache2splitlogfile
apacheaddmod
apachectl
apachedelmod
apachelogserverstatus
apachesplitlogfile



I'm sure there has got to be an easy way to get rid of apache 1. Any ideas?

Is there any reason why I would want to keep apache 1.3 on my system?


Cheers,


Last edited by newtonian on Sat Apr 02, 2005 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Sat Apr 02, 2005 7:25 pm    Post subject: Reply with quote

Here's what you're looking for:
Code:
emerge -Pa apache

Read the emerge manpage for details.
Back to top
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 465
Location: Hokkaido Japan

PostPosted: Sat Apr 02, 2005 7:40 pm    Post subject: Thank You! Reply with quote

oumpah-pah wrote:
Here's what you're looking for:
Code:
emerge -Pa apache

Read the emerge manpage for details.



Thank You!

As you said, right from the man file:

Quote:

--prune (-P)
WARNING: This action can remove important packages! Tries to remove all but the last
version installed. Since the command currently doesn't handle multiple versions of the
same package properly, beware ! This does not check dependencies, so it may also remove
packages necessary for the proper operation of your system. Use --clean instead unless
you really know what you're doing. Its arguments can be ebuilds, classes, or dependen-
cies -- see --clean above for examples. You have been warned !

--ask (-a)
Before performing the merge, display what ebuilds and tbz2s will be installed, in the
same format as when using --pretend; then ask whether to continue with the merge or
abort. Using --ask is more efficient than using --pretend and then executing the same
command without --pretend, as dependencies will only need to be calculated once.



Code:

hawk apacheConfBackup # emerge -Pa apache

>>> These are the packages that I would unmerge:

 net-www/apache
    selected: 1.3.32-r1
   protected: 2.0.52-r1
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Do you want me to unmerge these packages? [Yes/No] yes

Back to top
View user's profile Send private message
dncohen
n00b
n00b


Joined: 29 Nov 2004
Posts: 43

PostPosted: Tue Apr 26, 2005 8:03 am    Post subject: Reply with quote

Why in my case is apache2 selected, and apache 1.3 protected?

Code:

>>> These are the packages that I would unmerge:

 net-www/apache
    selected: 2.0.52-r1
   protected: 1.3.33-r2
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.


I realize I can specify version 1.3.33-r2 on the "emerge -Pa" command line, but the fact that its listed as protected makes me worry about pruning it. Why is it protected and how can I safely get rid of it? Thanks.
Back to top
View user's profile Send private message
dncohen
n00b
n00b


Joined: 29 Nov 2004
Posts: 43

PostPosted: Tue Apr 26, 2005 3:12 pm    Post subject: Reply with quote

Answering my own question, I simply emerged the latest apache (and mod_perl, as I had the same issue there). Now when I run "emerge -Pa mod_perl apache", I see the older versions selected, as I hoped.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum