User: Password:
Subscribe / Log in / New account

New features in APT-RPM

New features in APT-RPM

Posted Dec 1, 2003 23:05 UTC (Mon) by proski (subscriber, #104)
Parent article: New features in APT-RPM

One thing I really like in yum is "yum list extras" - the ability to list packages not found in any online repositories. These are the packages downloaded and installed locally. It's useful to review that list and decide if all those packages are still needed. Specifically if the system is used to build packages distributed to other systems, it's very important to be aware of all installed non-standard packages to avoid dependencies that cannot be satisfied from the standard repository.

If apt-rpm adds support for local packages, it would be very natural to add such command as well.

(Log in to post comments)

New features in APT-RPM

Posted Dec 2, 2003 1:28 UTC (Tue) by niemeyer (guest, #17169) [Link]

Looks interesting. Here is a Lua script that will do the same thing in APT-RPM:

    for i, pkg in pairs(pkglist()) do
        ver = pkgvercur(pkg)
        verlist = pkgverlist(pkg)
        if ver and not verisonline(ver)
           and table.getn(verlist) == 1 then
            print(pkgname(pkg) .. "-" .. verstr(ver))

To run it, execute the following command:

    apt-cache script ./list-extras.lua

If you want more comfort you may easily turn this into an additonal apt-cache command, and run it like:

    apt-cache list-extras

To do that, insert the following lines at the top of the Lua file:

    if command_args[1] ~= "list-extras" then
    command_consume = 1

And register it in your configuration with:

    Scripts::AptCache::Command:: "/path/to/list-extras.lua";

Notice that, unfortunately, this will only work with the upcoming APT-RPM 0.5.15cnc4, since the verisonline() function was implemented a few seconds ago. :-) The functionality was already there, but wasn't being exported to Lua. If you want it working now, you can check the revision 243 in the repository.

New features in APT-RPM

Posted Dec 2, 2003 5:40 UTC (Tue) by proski (subscriber, #104) [Link]

That's the kind of reply I like to get. Thank you!

Actually, my Red Hat machines use yum (I switched from apt-rpm just recently) and my Debian machine uses apt-get, quite expectedly. I wanted to convert everything to Debian unstable, but the Debian security breach changed my plans. is still closed, and I just cannot use XFree86 older than 4.3.0 with some hardware. I started updating Red Hat machines to Fedora.

It's exciting to learn about development of the tool I've been using until recently, but it seems I'm not going to use the results of your work until one of the following events occur:

    • The new apt-rpm becomes so good that Fedora switches to it.
      Debian switches to RPM packages :-)
      Debian and Fedora close or stop maintaining their repositories, everybody switches to Conectiva. Not likely either.
  • Anyway, your efforts are greatly appreciated.

    New features in APT-RPM

    Posted Dec 2, 2003 7:23 UTC (Tue) by schabi (guest, #14079) [Link]

    I successfully installed XFree86 3.0 using the following apt-sources.list line:

    deb ../procject/experimental main contrib non-free


    Copyright © 2017, Eklektix, Inc.
    Comments and public postings are copyrighted by their creators.
    Linux is a registered trademark of Linus Torvalds