Weblog entry #1 for parsingphase

Telling debian "I'll handle it"
Posted by parsingphase on Mon 6 Feb 2006 at 17:22
Tags: none.
I run debian (generally "stable") on various servers, but prefer to use PHP5.x and MySQL5.x

I can install PHP5 manually, but I also use packages like "hastymail" which depend on a 'php' package. How can I create a ghost package that simply tells APT "I'm providing the requirement 'php', don't install the one from 'stable'"? I'm not worried about packaging the whole of PHP5, all I really need is the package metadata.

I know I can "pin" php4, but I'd rather just get rid of it so I can do things like 'dist-upgrade' with peace of mind.



As for MySQL 5, this appears to be only in "testing" (which is fair enough). Is there any way to tell APT to get only this package (dependencies permitting) from "testing" and stick with "stable" for everything else?


TIA

 

Comments on this Entry

Posted by Steve (82.41.xx.xx) on Mon 6 Feb 2006 at 19:07
[ Send Message | View Steve's Scratchpad | View Weblogs ]

If you wish to create a dummy package you might find the equivs package useful, as this is designed to fake dependencies...

Failing that you should be able to obtain a package from Testing and otherwise keep your system running stable just by using "apt priorities". That is discussed in the manual I think, though I don't have it to hand right now.

Steve

[ Parent | Reply to this comment ]

Posted by Anonymous (80.109.xx.xx) on Mon 6 Feb 2006 at 21:38
man apt_preferences
explains "pinning"

[ Parent | Reply to this comment ]

Posted by simonw (84.45.xx.xx) on Mon 6 Feb 2006 at 23:23
[ Send Message | View Weblogs ]
The manual, and the Debian Reference. By now you've all perused the contents page of the Debian Reference so you know roughly what is in it, right?

We are getting on okay with the dotdeb MYSQL5 and PHP5 packages at work, although I guess upgrading to Etch could be more involved than it would otherwise have been, but I assume the data in MYSQL can be dumped and reloaded depending what version of 5 ends up in Etch. Guess we mustn't use anything that depends on minor versions numbers too much.

[ Parent | Reply to this comment ]

Posted by Anonymous (195.23.xx.xx) on Tue 7 Feb 2006 at 12:52
You only need backports.

[ Parent | Reply to this comment ]

Posted by parsingphase (87.74.xx.xx) on Tue 7 Feb 2006 at 14:04
[ Send Message | View Weblogs ]
Looks useful, but I have security concerns with using third-party packages. I (as we all do*) tend to trust debian's package servers and the project websites for apache, php, mysql etc to provide legitimate stable software, but I'm less confident that third party sites will be secure. No offence to the maintainers of backports, dotdeb etc, but I know that there are more "eyes" scrutinising the official sources.

* Unless we're on a deliberate vulnerabilities hunt...

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search