Re: Updating without Apt



William Pursell wrote:
Andrew Gray wrote:
My name is Andrew, and I use Debian Lenny on an x86 machine.

I love Debian. I love apt. The Debian/Apt combination has allowed me to use software I would have never before dreamed to be possible to use. I'm quite content with my system at the moment. My problem comes when a piece of software that I use with frequency is updated by the developers in a major way. The Debian repositories do not reflect this change, and likely won't for some time.

The software in question is emacs22.

I would be surprised if a major update to emacs weren't in
sid within a few days, if not hours.


Currently I have it compiled in my home directory at ~/source/emacs/, where I run it directly out of the src directory. I dare not "make install", or my apt install will be permanently harmed and/or it won't work and I will be faced with a crippled, non-running version of emacs on my system. Not only that, but with this compilation I was able to enable GTK for the X11 run of emacs. I loved having that kind of flexibility with my compilation.

Is there anything I can do to ensure that if I did a make install it wouldn't affect my current install or something like that?

As was suggested else-thread, you can probably do:
configure --prefix=/usr/local && make && make install.
(I'm not an emacs user, so the build may be more complicated
than that, but this will very likely work.) In fact, /usr/local
is the defaul prefix, so you don't even need that. In other
words, you can make install, since it will install to /usr/local/bin,
rather than /usr/bin and not interfere with the version installed
via apt at all. If you want to test it more carefully, try

make DESTDIR=/tmp/foo install

and examine the resulting tree in /tmp/foo. You should only get
executables in /usr/local/bin.

However, you might want to look into apt pinning. This allows
you to pull emacs from sid without requiring you to update your
entire system to sid, and will give you the updates more
quickly. Or, you can simply download the .deb files from
sid and install them with dpkg. If the upstream is truly
not showing up in sid for too long, that won't work. If
that is the case, you can grab the .dsc from sid and make
the modifications yourself to create a newer deb.


I was going to to a configure --prefix=/usr/local as you suggested, but I made the mistake of looking through the configure file and seeing that perhaps exec_prefix was the variable I wanted to change. I then figured that hey, this is what people do for all the other packages, it's likely to work for emacs, and gave it a shot with prefix.

It's worked beautifully! Installation went flawlessly, and now I'll just install slime and a few other things and get runnin'. Thanks so much Will!

Andrew Gray
Seattle,WA


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Updating without Apt
    ... The Debian repositories do not reflect this change, and likely won't for some time. ... sid within a few days, ... I dare not "make install", or my apt install will be permanently harmed and/or it won't work and I will be faced with a crippled, non-running version of emacs on my system. ...
    (Debian-User)
  • Re: Using apt to install only one package
    ... the nVidia driver from Sid I limit it to *only* the packageI am seeking rather than everything else that apt wants me to install? ... I don't mind installing more packages than what I had thought I needed: ... I was just concerned that with my sources.list opened up to a Sid repository temporarily for the purposes of this operation - to retrieve a kernel header for the nVidia driver - that if apt downloaded and installed a whole bunch of other packages that I would end up in the sticky situation of having a mixed set of libraries. ...
    (Debian-User)
  • Re: linux for loaner computers to the masses?
    ... What's so awkward about using APT with ... I still use my ancient Woody netinstall CD to install Sid. ...
    (comp.os.linux.misc)
  • Re: segmentation fault with NVIDIA 32bit part
    ... Sid version of nvidia's packages, and install the "Debian way" using ... You mean to install an older Debian package that has the nvidia ...
    (Debian-User)
  • APT -- if I do this will I screw the pooch?
    ... I typically use aptitude in command-line mode as a front-end to APT. ... I was thinking of setting up the notebook by doing a basic install off my old woody CDs I originally set up my desktop off of, getting a working net connection in place, then immediately upgrading everything via the net to current stable before building out the system any further. ... I don't want the notebook to have to download them all again, especially since security.debian.org, which has a lot of the latest versions of stable packages, seems to get overloaded and be very slow to download at times. ... This is because although I want them both to use the same repository of downloaded package files, I want the two machines to independently track what's installed, so I don't have to keep installed packages identical on both machines. ...
    (Debian-User)