Results 1 to 4 of 4

Thread: [ASK] Tracking Package Dependencies in /var/cache/apt/archives

  1. #1
    Join Date
    Apr 2012
    Beans
    48

    Lightbulb [ASK] Tracking Package Dependencies in /var/cache/apt/archives

    Place:
    /var/cache/apt/archives

    Condition:
    I have downloaded Netbeans after 20+ another applications (Eclipse, pbuilder, Quassel, etc.). There are hundreds of DEB there. I use Ubuntu 12.04 now.

    Problem:
    I don't know which DEB dependencies in the cache for Netbeans. I can't distinct which are DEB dependencies for netbeans between those hundreds of DEB there.

    Wish:
    I wanna track/filter/find DEB dependencies exactly for Netbeans (no others) from cache for doing sudo dpkg -i *.deb in my another PCs with same Ubuntu 12.04 version. Assume I have 30 PCs. I wanna install Netbeans offline, because no bandwidth for downloading again.

    What Makes I Brave to Wish:
    When I do sudo dpkg -i *.deb in a folder contains only Netbeans and DEB dependency packages, dpkg can track which package to install first, which to next, what's next, until end. It can track dependencies of many DEB in one folder, in local directory. And this type of installation is so useful in low internet bandwidth country like Indonesia, my country.

    What I Don't Wish:
    • Standard preparation mode for offline installation in case you can see this page for example: http://www.tuxradar.com/answers/517. I don't want that method because I have all I need in my cache, I don't want to download again. That waste my limited bandwidth.
    • Method of Aptoncd. I wanna Netbeans only, not whole DEB of my cache.


    Question:
    How to do dependency tracking only for Netbeans (only Netbeans, not others) with all file name completely shown? It should complete and not only front name like kde-standard or build-essential. I wanna command result like this:

    Dependencies for Netbeans in the /var/cache/apt/archives:
    anu_1.0_i386.deb
    ani_1.0_i386.deb
    ano_1.0_i386.deb

    I know only apt-cache, apt-rdepends, apt-offline, and dpkg -l packagename. Only them. I have read some documentations like dpkg manpage, apt-offline manpage, a webupd8 page, a debianadmin manual, and more. All not satisfy my curiosity. Only apt-cache depends packagename that almost perfectly suite my wish. Any solution from you all? Thank you before.

    Respect from Indonesia.
    Last edited by Malsasa; March 8th, 2013 at 06:26 PM.

  2. #2
    Join Date
    Apr 2012
    Beans
    48

    Re: [ASK] Tracking Package Dependencies in /var/cache/apt/archives

    It was 23 hours after post Any suggestion?

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,172
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: [ASK] Tracking Package Dependencies in /var/cache/apt/archives

    On 12.10, netbeans looks like a clean package:

    tgalati4@Mint14-Extensa ~/Desktop $ apt-cache search netbeans
    gcj-4.7-source - GCJ java sources for use in IDEs like eclipse and netbeans
    gcj-4.6-source - GCJ java sources for use in IDEs like eclipse and netbeans
    libbeansbinding-java - Beans Binding API (library)
    libbeansbinding-java-doc - Beans Binding API (documentation)
    libnb-absolutelayout-java - Java LayoutManager to allow placement in absolute positions
    libnb-apisupport3-java - Common NetBeans Platform Development Related Libraries for NetBeans
    libnb-ide14-java - Common Integrated Development Environment Libraries for NetBeans
    libnb-java5-java - Common Java Related Libraries for NetBeans
    libnb-javaparser-java - Parser for the Java language which is good for use in tools
    libnb-org-openide-modules-java - Utility classes for modules from the NetBeans Platform
    libnb-org-openide-util-java - Utility classes from the NetBeans Platform
    libnb-org-openide-util-lookup-java - Utility lookup classes from the NetBeans Platform
    libnb-platform-devel-java - Build harness for NetBeans Platform
    libnb-platform13-java - NetBeans Platform for building rich desktop applications in Java
    libnb-platform13-java-doc - NetBeans Platform javadoc
    libnetbeans-cvsclient-java - NetBeans CVS Client library
    libsezpoz-java - Lightweight library for modular service lookups
    libsezpoz-java-doc - Documentation for SezPoz
    libswing-layout-java - Extensions to Swing layout
    libswing-layout-java-doc - Extensions to Swing layout - contains Javadoc API documentation
    netbeans - Extensible Java IDE
    python-envisage - Extensible Application Framework
    python-envisagecore - Extensible Application Framework

    tgalati4@Mint14-Extensa ~/Desktop $ apt-cache depends netbeans
    netbeans
    Depends: libnb-platform13-java
    |Depends: openjdk-6-jdk
    |Depends: <java6-sdk>
    openjdk-6-jdk
    default-jdk
    openjdk-7-jdk
    Depends: <java7-sdk>
    default-jdk
    Depends: libnb-ide14-java
    Depends: libnb-java5-java
    Depends: libnb-apisupport3-java
    Conflicts: <netbeans-ide>
    Conflicts: <netbeans-ide:i386>
    Conflicts: <netbeans5.5>
    Conflicts: <netbeans5.5:i386>
    Replaces: <netbeans-ide>
    netbeans
    Replaces: <netbeans-ide:i386>
    Replaces: <netbeans5.5>
    Replaces: <netbeans5.5:i386>

    So, take machine #1, delete /var/cache/archives/*.* using:

    Code:
    sudo apt-get clean
    Verify that the cache is empty. Now install netbeans and any other packages that you need for your build/development environment.

    Make a list of the packages in /var/cache/archives and copy them to a local project directory. Rsync that project directory to the other machines and use a dpkg script to install.
    Last edited by tgalati4; March 9th, 2013 at 07:48 PM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  4. #4
    Join Date
    Jun 2007
    Location
    NYC
    Beans
    326
    Distro
    Ubuntu Development Release

    Re: [ASK] Tracking Package Dependencies in /var/cache/apt/archives

    I think you might want to take a closer look at apt-offline. It can pull the contents from a cache directory instead of re-downloading them.

    On the off-line machine, run:

    Code:
    sudo apt-offline set --install-packages netbeans -- ~/apt-offline.sig
    Then copy the apt-offline.sig file to the machine that has the packages in cache directory and run:

    Code:
    apt-offline get --cache-dir='/var/cache/apt/archives' apt-offline.sig
    From apt-offline's manpage:

    Code:
           -s, --cache-dir DIR_NAME
                     Look for data in the cache before  downloading  it  from  the
                     internet. If you are on a Debian box, you would want to spec‐
                     ify /var/cache/apt/archives here. If the data is  not  avail‐
                     able  in the cache, the downloaded data is also copied to the
                     cache.
    -----

    Community Manager @ DigitalOcean
    You're more likely to get answers from me over on AskUbuntu these days.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •