Re: Debian 3.1: PHP install strategies



I demand that Gordon Henderson may or may not have written...

In article <1155809431.227213.219170@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<bruce_phipps@xxxxxxxxxxx> wrote:
[snip]
PS: apt-get just looks on my CD drive -- I can't figure out how to edit
the apt-get config file to change this.

Edit /etc/apt/sources.list

I have the following in mine:

deb http://www.debian-multimedia.org stable main
deb http://debian.blueyonder.co.uk/ stable main non-free contrib
deb http://security.debian.org/ stable/updates main contrib non-free

You *should* also have this line, mainly to cope with release updates:

deb http://ftp.uk.debian.org/debian stable main contrib non-free


apt-get update
and you might as well run
apt-get upgrade
to get all the latest securty upgrades at the same time.

Then use something like dselect or the newer aptitude to select packages.
This will work out and resolve the dependancies for you.

It would be better to check whether aptitude is already installed:
$ which aptitude

If not (no output):
# apt-get update; apt-get install aptitude

With aptitude installed, you can use
# aptitude update

Then
# aptitude upgrade

Or if you'd rather use aptitude's UI:
# aptitude

Press 'u' to start an update; or press 'g' for a list of upgradable packages,
then again to start the upgrade. 'q' to close the current view (and the whole
program if that was the only one). '?' for help.

From a personal point of view, I tend to use Debian just to get a basic
installation going, then I download and install packages like apache, php,
mysql directly from the original web sites to get things installed the way
I want them, [...]

First, copy a few 'deb' lines, replacing 'deb' with 'deb-src', then
# aptitude update

$ apt-get source $PACKAGE
$ sudo apt-get build-dep $PACKAGE # should really be done by aptitude :-|
$ cd $PACKAGE-$VERSION
... hack away, possibly modify debian/changelog ...
$ debuild
$ sudo dpkg -i ../$PACKAGE_$VERSION_$ARCH.deb

--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Lobby friends, family, business, government. WE'RE KILLING THE PLANET.

I'd like to, but I have too much guilt.
.



Relevant Pages

  • Re: How to Totally!! nuke X11?
    ... } I always use something like "aptitude install -t version xxx". ... This is the primary benefit I keep hearing about for aptitude over apt-get. ... I install a package because I want to try it out, ...
    (Debian-User)
  • Re: update manager cannot update kernel files (was Re: aptitude x apt-get (was: Re: Dapper -
    ... is simply that the update app in gnome on Ubuntu Dapper did *NOT* update ... As I said, you can do the same things (install, update, upgrade, dist-upgrade, ... Aptitude has several enhancements over apt-get, ...
    (Ubuntu)
  • Re: aptitude vs. apt-get
    ... apt-get -s upgrade shows nothing to install and 2 packages ... I admit there probably is an explanation to the aptitude ...
    (Debian-User)
  • Re: xserver-xfree86 fiasco!
    ... it would seem that your .deb is probably okay. ... You might try aptitude instead of apt-get, as in "aptitude install ... it's my understanding that aptitude logs better than ...
    (Debian-User)
  • Re: cant apt-get install
    ... As I would later figure out, too, the debian installer simply left out packages it lost TCP connection on, without re-trying to get them or asking the user what to do! ... After having downloaded all new packages, apt-get simply hang at 99%. ... Of course I immediately wanted to install some packages again. ... aptitude that is. ...
    (Debian-User)