Preventing apt to overwrite directadmin

rpr

Verified User
Joined
Oct 20, 2010
Messages
65
Hi,

is there a way to prevent apt to overwirte directadmin compiled packets (Like php, apache2, ...)
 
Well you should know better then to install that software with apt.

Remove everything you installed with apt or dpkg then reinstall the software with custombuild.

I dont have a debian/ubuntu server to check.

On centos the file is in /etc/yum.conf with the following:

exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-chroot*
 
apt-get doesn't have a similar exclusion line, but rather a command you can run. Search for a thread, updated today (by me among others) with the word ubuntu in the title.

Jeff
 
seems to do the trick. Do you have a list of packages that I should block?

Thanks.
 
Yep.
apache* httpd* mod_* mysql* MySQL* da_* *ftpd* exim* sendmail* php* bind-chroot*

you can hold packages but not package that start with something. So the * doesn't work. Anyone else a option?
 
but not package that start with something. So the * doesn't work.
Please look at the line I posted more carefully. As you can see, only ftpd started with *. The rests end's with it.
Normally DA only sets ftpd* and not *ftpd* as I did. So you should be fine just using ftpd* and no need to put the * in front.

I also found another thread here on the forum somewhere, also handling this in Debian. If I understood correctly there was an option to only update packages installed by apt-get using some command. I don't remember which one.

Or use wajig:
apt-get install wajig
wajig hold apache2
wajig hold mysql-server
wajig hold php
etc.

I'm no Debian guy, you should be able to figure it out with these examples or maybe somebody else can help you with it.
 
Back
Top