Question about package dependencies, package versions and distro releases



Hi list,

I have a question about the whole packaging system and I'd like to ask
it with an example:

I have to do some Java coding for university and Java 6 which is
(partially) open source has just been released. So I wanted to try it.
At the moment I'm using Edgy and java-6-sun is not available for it, but
it is packaged for Feisty already. I'm not so comfortable with
installing software that is not packaged for Ubuntu, so I didn't want to
install the JDK6 manually... So I did the following (I'm rather new to
Linux and APT, so I have no idea if the following is a bad idea): I
edited the sources.list the following way: I copied the line

deb http://ch.archive.ubuntu.com/ubuntu/ edgy main restricted universe
multiverse

and changed it to

deb http://ch.archive.ubuntu.com/ubuntu/ feisty multiverse

This should give me access to the Feisty multiverse repository. After
that I ran apt-get update and apt-get install sun-java6-jdk. Java 6
installed flawlessly. After that, I removed the new line from
sources.list and ran update-alternatives --config java. Now I have a
working version of Java 6 that I could remove through Synaptic/apt-get
if I want to...

Now to my questions:
- Is this 'bad' (using packages from another distro)?
- Packages don't seem to include information to which distro (e.g. Edgy
or Feisty) they belong, or do they?
- Do packages depend 'just' on other packages or do they depend on a
special version of other packages?
- Was I lucky that the above worked or should installing packages from
other distro releases always work?
- Regarding the update from Edgy to Feisty: what is the difference
between using apt-get dist-upgrade and changing all occurences of
'edgy' to 'feisty' in sources.list and apt-get update && apt-get upgrade?

I hope someone can explain this stuff to me... Thanks in advance!

cheers, Severin

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Denyhosts
    ... My best advice to you would be, unless you absolutely NEED the stability and ... LTS of Dapper, to update to Edgy, and the to Feisty once it is released. ... I imagine this is also responsible for many of the other missing packages ...
    (Ubuntu)
  • Re: Denyhosts
    ... Brian Fahrlander wrote: ... LTS of Dapper, to update to Edgy, and the to Feisty once it is released. ... I imagine this is also responsible for many of the other missing packages ...
    (Ubuntu)
  • A whole host of software problems :-)
    ... I've had some problems with CSW packages since I tried to ... first of all cleaned out all of my CSW installations, ... older versions of GIMP and Mozilla from unofficial mirror sites. ... insisted on updating Java, and I think that was when the problems ...
    (comp.unix.solaris)
  • Re: How to load Edgy version of a package onto Dapper?
    ... all of the Feisty packages are guaranteed to work. ... to happen with an attempt to upgrade a single package from Dapper to Edgy ... When you see it wanting to update 300 packages, ... compiled against different versions of various libraries. ...
    (Ubuntu)