[maemo-developers] where might this old version be coming from
From: Eero Tamminen eero.tamminen at nokia.comDate: Thu Oct 2 16:08:59 EEST 2008
- Previous message: where might this old version be coming from
- Next message: where might this old version be coming from
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, ext Guillem Jover wrote: > On Thu, 2008-10-02 at 12:52:44 +0300, Eero Tamminen wrote: >> Guillem Jover wrote: >>> You mean something like dpkg-scanpackages or apt-ftparchive? >> According to man pages they would seem to do at least part of the work, >> but it wasn't on quick reading clear how I would actually use them >> (I have no experience with maintaining or creating repositories). >> >> For example if: >> - I've built in Scratchbox ARMEL packages "a.deb" & "b.deb" >> - I'am outside of Sbox in the directory where these packages are >> - the device memory card is mounted to /media/n810/ on my Debian >> Desktop >> >> What I need to do to get a "repository" created under >> /media/n810/repository/? > > Something like: > > $ mkdir -p /media/n810/repository > $ cp $sboxdir/*.deb /media/n810/repository/ > $ cd /media/n810/repository/ > $ $packages_generator . | gzip -9 > Packages.gz > > where packages_generator is either “dpkg-scanpackages” or > “apt-ftparchive packages”. My Etch dpkg-scanpackages didn't work, but apt-ftparchive worked fine. Thanks, I hadn't thought it would be this simple! (I had thought that the directory hierarchy was needed, but as the generated Packages file refers to the packages relatively it's not...) AM had some things it needs too, so all together the required steps are following: On PC: * Creating directory structure expected by AM to memory card root: mkdir -p /media/<USB mount>/dists/diablo/user/binary-armel * Moving the armel binary packages to this directory mv *.deb /media/<USB mount>/dists/diablo/user/binary-armel * Generating the Packages file in that directory: cd /media/<USB mount>/dists/diablo/user/binary-armel apt-ftparchive . | gzip -9 > Packages.gz On device: * Add the memory card repository to the Application manager from Menu->Tools->Application catalogue: - give Catalogue name like "Memory card" - give "file:///media/mmc1/" as Web address - leave Distro empty and Components as "user" (if you change that from "user", change also the directory hierarchy on memory card accordingly) * OK this & cancel catalog list and the new catalog is refreshed. In AM installable package list you see then all packages listed under the "user/" section Maybe somebody can add this to the wiki? - Eero
- Previous message: where might this old version be coming from
- Next message: where might this old version be coming from
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]