6

Essentially, I'm looking at the .list files in /etc/apt/sources.list.d/. Each of them has a deb entry; I'm curious to know if there's a way to see if any new distribution exists for any of the entries.

5 Answers 5

3
+50

Subscribe to debian-announce. No, really, you don't want to automate version upgrades, as by definition, things might break.

2
  • 1
    Whilst that is good advice in general, some of the third-party repositories don't have good announcement lists and aren't always completely up to date with mainstream Debian. May 30, 2010 at 22:24
  • Please note, for people coming by later, that this answer was auto-selected by SF, and not by me; I do not believe that this is the correct answer. Jun 8, 2010 at 12:49
3

Is sudo apt-get update; sudo apt-get upgrade what you're looking for?

Look at section 2.4 of this intro: http://newbiedoc.sourceforge.net/system/apt-get-intro.html

1
  • 1
    No, it's not. I'm looking to see if the line matching deb http://blah.com/debian sarge has an update (meaning I should switch to lenny etc. May 10, 2010 at 17:02
1

You tagged you're question as Ubuntu and Debian which is a bit confusing. Your comment to rescdsk's answer seems to indicate you're really looking for an answer for Debian.

However here's a solution for Ubuntu I'm not sure if it will work for Debian or not.

Install update-manager-core if it's not already on the system then you can see if there's a new release using do-release-upgrade -c

4
  • The comment is just an example. I could have instead said deb http://blah.com/ubuntu lucid, and been equally correct. The problem with do-release-upgrade is that it only checks the Ubuntu core. I'm trying to find if there's a new "release" for other sources, like Chrome, or VirtualBox, etc (moving from karmic to lucid, etc). May 27, 2010 at 16:43
  • Yeah that will only check the Ubuntu repos. I would imagine that you could test those repos using wget or curl in a script to see if they exist fairly easily. May 27, 2010 at 17:16
  • 2
    That's the point of the question... does any such script already exist? May 27, 2010 at 17:46
  • 2
    I wonder what do-release-upgrade uses to check for new releases, and whether that could simply be extended to other repositories. It'd certainly be a nice way of doing it. May 30, 2010 at 22:27
0

Correct me if I am wrong, but if you want to do a dist upgrade with apt-get you would issue

apt-get update; apt-get -u dist-upgrade

This should prompt you for what will be upgraded. You may have to do this a few times if you are behind. If you are currently on Lenny than a simple apt-get update; apt-get -u upgrade will prompt you on what you need to install to update the system. The -u is important as it will show you what will happen before you hit Y (yes).

Now the above may not be what you are looking for but that is typical Debian/Ubuntu maintenance.

If you are trying to update programs that would be considered outside of the Lenny stable environment, you can add those 'repositories' to /etc/apt/sources.list. Once the appropriate lines are entered there you should enter the apt-get update command and then either apt-cache search NAME (to search for a specific program) command or you could do a apt-get -u dist-upgrade as above but be wary where you are pulling packages from.

If you actually want to scan the /etc/apt/sources.list.d/ files, you can do this but I do not see the point as apt-get will take care of all issues as far as stable debs are concerned. If you need a solution to check each deb, versus the update tool, I can definitely help. Just need more info on what you are actually trying to accomplish as the tools do the general admin for you.

Hope this helps

3
  • Just saw the comments, my post no longer applies May 29, 2010 at 7:10
  • I would guess with the comments on 3dinfulence's post, the only easy way to do this without going crazy, would be to add each important program's direct deb source to the sources.list file. Then the apt-get update; apt-get -u upgrade would apply. May 29, 2010 at 7:14
  • Are there only a few programs you are trying to update or just want to update everything outside of the deb/u core? May 29, 2010 at 7:21
0

If you are looking to do centralized management on DEB package updates for multiple systems, someone wrote a thesis on this. The project added DEB support to Spacewalk, which is an open source update manager for RPM-based systems.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .