![]() ![]() |
Jun 17 2006, 10:32 AM
Post
#1
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
The package manager.. doesn't. It's just a frontend to the ipkg tools.
I searched around and found a reference to ldd, but that isn't right for ipk files. The packaging guidelines say: QUOTE 6. The package control file should list all dependency information in the "Depends:" field. All dependencies (libraries, etc.) should be on the feed as well. How do I: 1. Determine the requirements of a particular package (before installing it)? 2. Determine the installed-size of a package before it is installed? 3. Determine the combined installed size of a package and all its dependancies? 4. Automatically install all dependancies? 1. Now I can see things like CODE ipkg depends <package>.ipk which happens to have failed when I tried it thusly: CODE ipkg depends ruby_1.8.0-1_arm.ipk QUOTE ipkg_depends: ERROR: Package name ruby_1.8.0-1_arm.ipk contains illegal characters (should be [a-zA-Z0-0.+-]) error ipkg info doesn't seem to do anything for that package. Indeed it looks like running ipkg at the commandline is generally a bad idea, as I was unable to "manually" install ruby using the ipkg program. Strange. 2. I assume I can take a peek inside the archives and do some math. Is there a better way to do this? 3. Presumably this is possible with some scripting voodoo. Is there a better way? 4. Since viewing the dependancy of a package fails, I presume that this is impossible. ... How does everyone else handle packages? |
|
|
|
Jun 17 2006, 04:37 PM
Post
#2
|
|
|
Group: Members Posts: 793 Joined: 28-November 04 From: NM, US, sometimes Asia Member No.: 5,633 |
Hi there ... I hear you on your ipkg dependency woes ...
to install via command line: # ipkg install ruby_1.8.0-1_arm.ipk if you have feed setup ... you can do a # ipkg install ruby the ipkg installer should pull down the main pkg and dependencies if they are found on the feeds. |
|
|
|
Jun 17 2006, 04:46 PM
Post
#3
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
CODE # ipkg install ruby_1.8.0-1_arm.ipk I did try this, but it didn't work as-expected. I was able to use the GUI tool -- after the silly wait for it to load everything up -- and then it would work. Upon installing via the commandline, trying to run ruby gave me an error. I didn't have the forethought to record it though. |
|
|
|
Jun 17 2006, 05:59 PM
Post
#4
|
|
|
Group: Members Posts: 793 Joined: 28-November 04 From: NM, US, sometimes Asia Member No.: 5,633 |
QUOTE(Sy Ali @ Jun 18 2006, 08:46 AM) CODE # ipkg install ruby_1.8.0-1_arm.ipk I did try this, but it didn't work as-expected. I was able to use the GUI tool -- after the silly wait for it to load everything up -- and then it would work. Upon installing via the commandline, trying to run ruby gave me an error. I didn't have the forethought to record it though. the above line requires the ipk to be downloaded before hand (I think) ... I tried # ipkg install ruby ... without the versions and .ipk stuffs and it pulls down via network. ... assuming you have network on your z sorted out ... |
|
|
|
Jun 17 2006, 07:33 PM
Post
#5
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
I downloaded the appropriate files from the feed and put them on my SD card. The GUI package manager finds the ipk files and lets me install the packages that way.
The commandline is less helpful for me. No I do not have networking set up yet. I wanted to keep things simple for now, but perhaps I should investigate networking over USB. =) |
|
|
|
Jun 18 2006, 02:53 AM
Post
#6
|
|
|
Group: Members Posts: 20 Joined: 6-August 05 Member No.: 7,801 |
QUOTE(Sy Ali @ Jun 18 2006, 11:33 AM) I downloaded the appropriate files from the feed and put them on my SD card. The GUI package manager finds the ipk files and lets me install the packages that way. The commandline is less helpful for me. No I do not have networking set up yet. I wanted to keep things simple for now, but perhaps I should investigate networking over USB. =) If you install via local directory the depends will not be automatically installed. - you will have to install all depends manually. If you install via the network from a proper feed the depends will be automatically installed - as long as they are available in the configured feeds. |
|
|
|
Jun 18 2006, 03:36 AM
Post
#7
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
It's very odd that local installation won't do dependancy checking.
So my solution is to learn how to configure things so that local files can be used like a remote feed. My notes say that I can set it to this: file:///mnt/cf/feed However, where should I go to set this preference? And will this be the solution for me? =) |
|
|
|
Jun 18 2006, 06:07 PM
Post
#8
|
|
|
Group: Members Posts: 793 Joined: 28-November 04 From: NM, US, sometimes Asia Member No.: 5,633 |
yes, if you download the package and relevant dependencies into a local directory (say, /mnt/cf/feed), and point ipkg feed to it, it will work.
I also like to download the ipks and dependencies before installing ... that way, if I ever need to reinstall, I do not have to wait for download again. open up /etc/ipkg.conf and you should see couple of lines defining the feeds ... #src spy http://................ src localcf file:///mnt/cf/feed ... lines with "#" are comments or commented out, and are not active. Hope this helps. |
|
|
|
Jun 18 2006, 06:20 PM
Post
#9
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
I did get a chance to play around with the /etc/ipkg.conf and also with the package manager GUI. The GUI is useful when I enter into "install packages via networks" and there I can enter in the file:/// settings manually.
However, both routes appear to do nothing. I used to get errors with file:///mnt/cf/feed but I clued in and used file:///mnt/cf/feed/ and now clicking "upgrade" process something and gets to 100% but displays no packages. * After playing around, the /etc/ipkg.conf gets overwritten by the GUI. * I doublecheck the ipkg.conf and the only reference is commented out. * I fix it and then launch the GUI again. * When pressing "upgrade" the GUI gives "ipkg says something went wrong. Sorry." (what is this, a Mac?) * Entering into the configuration shows my localcf feed properly. * Clicking "upgrade" again gives me the 100% meter but.. does nothing. Am I doing something non-standard? I've never been able to get the packaging working "via network". Manually installing dependancies using the regular "install packages" does work as-expected (minus the complete functionality of package management) |
|
|
|
Jun 18 2006, 06:29 PM
Post
#10
|
|
![]() Group: Members Posts: 2,808 Joined: 21-March 05 From: Sydney, Australia Member No.: 6,686 |
QUOTE(Sy Ali @ Jun 19 2006, 12:20 PM) I did get a chance to play around with the /etc/ipkg.conf and also with the package manager GUI. The GUI is useful when I enter into "install packages via networks" and there I can enter in the file:/// settings manually. However, both routes appear to do nothing. I used to get errors with file:///mnt/cf/feed but I clued in and used file:///mnt/cf/feed/ and now clicking "upgrade" process something and gets to 100% but displays no packages. * After playing around, the /etc/ipkg.conf gets overwritten by the GUI. * I doublecheck the ipkg.conf and the only reference is commented out. * I fix it and then launch the GUI again. * When pressing "upgrade" the GUI gives "ipkg says something went wrong. Sorry." (what is this, a Mac?) * Entering into the configuration shows my localcf feed properly. * Clicking "upgrade" again gives me the 100% meter but.. does nothing. Am I doing something non-standard? I've never been able to get the packaging working "via network". Manually installing dependancies using the regular "install packages" does work as-expected (minus the complete functionality of package management) update will only refresh the Package Manager cache of packages listed on the remote feed you need the Packages files in your local feed in order for it to resolve dependencies for your local packages. once you got a proper Packages file in your local feed, then update will be able to refresh the cache with data from the local Packages file in your local feed assuming you create an appropriate Packages file for your local feed/files. |
|
|
|
Jun 18 2006, 06:54 PM
Post
#11
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
QUOTE(Meanie @ Jun 18 2006, 10:29 PM) update will only refresh the Package Manager cache of packages listed on the remote feed But isn't the file:///path/to/feed/ the right way to tell it where the remote feed is? I used this setting and 'update' did not refresh the list. QUOTE you need the Packages files in your local feed in order for it to resolve dependencies for your local packages. once you got a proper Packages file in your local feed, then update will be able to refresh the cache with data from the local Packages file in your local feed assuming you create an appropriate Packages file for your local feed/files. What is the "local feed"? Where is it? Once I put files into this local feed, how do I install software and have it check dependancies automatically? Nothing I have been doing so far has worked with dependancy checking. |
|
|
|
Jun 19 2006, 12:02 AM
Post
#12
|
|
|
Group: Members Posts: 6 Joined: 3-May 04 From: A-8940 Weissenbach/Liezen Member No.: 3,118 |
QUOTE(Sy Ali @ Jun 18 2006, 06:54 PM) QUOTE(Meanie @ Jun 18 2006, 10:29 PM) update will only refresh the Package Manager cache of packages listed on the remote feed But isn't the file:///path/to/feed/ the right way to tell it where the remote feed is? I used this setting and 'update' did not refresh the list. QUOTE you need the Packages files in your local feed in order for it to resolve dependencies for your local packages. once you got a proper Packages file in your local feed, then update will be able to refresh the cache with data from the local Packages file in your local feed assuming you create an appropriate Packages file for your local feed/files. What is the "local feed"? Where is it? Once I put files into this local feed, how do I install software and have it check dependancies automatically? Nothing I have been doing so far has worked with dependancy checking. If you made a local feed you also have to create a "Package" file in this feed. At the bottom of this page you can find the script to create this file. ...tschüß, Gerhart |
|
|
|
Jun 19 2006, 01:20 AM
Post
#13
|
|
|
Group: Members Posts: 120 Joined: 14-June 06 Member No.: 10,168 |
Hmm, perhaps we misunderstand oneanother.
I have a directory called: /mnt/card/feed/ Within it are my many .ipk files. I use the GUI tool in "Settings" called "Add/Remove Software". Selecting "Install packages" will automatically find my ipk files and display them. However, this tool will not resolve dependancies. I am told that "Install packages via networks" will resolve dependancies. So my goal is to make this feature look on my card for the ipk files. I am told that editing my /etc/ipkg.conf file like this will work: CODE src localcf file:///mnt/card/feed/ dest root / dest tmpinst /home/tmp/ipkg/inst However this does not work, and in fact the GUI tool will transform this file like this: CODE # Written by Qt Palmtop Package Manager # src localcf file:///mnt/card/feed/ dest root / dest tmpinst /home/tmp/ipkg/inst So when you say "local feed", I am thinking the /mnt/card/feed/ directory. Am I mistaken? |
|
|
|
Jun 19 2006, 11:15 PM
Post
#14
|
|
|
Group: Members Posts: 6 Joined: 3-May 04 From: A-8940 Weissenbach/Liezen Member No.: 3,118 |
QUOTE(Sy Ali @ Jun 19 2006, 01:20 AM) Hmm, perhaps we misunderstand oneanother.
I have a directory called: /mnt/card/feed/ Within it are my many .ipk files. I use the GUI tool in "Settings" called "Add/Remove Software". Selecting "Install packages" will automatically find my ipk files and display them. However, this tool will not resolve dependancies. I am told that "Install packages via networks" will resolve dependancies. So my goal is to make this feature look on my card for the ipk files. I am told that editing my /etc/ipkg.conf file like this will work: CODE src localcf file:///mnt/card/feed/ dest root / dest tmpinst /home/tmp/ipkg/inst Without a "Package" file you can't resolve the dep's - and you have to choose "Install packages via Network" at the GUI-Installer. ...tschüß, Gerhart However this does not work, and in fact the GUI tool will transform this file like this: CODE # Written by Qt Palmtop Package Manager # src localcf file:///mnt/card/feed/ dest root / dest tmpinst /home/tmp/ipkg/inst So when you say "local feed", I am thinking the /mnt/card/feed/ directory. Am I mistaken? |
|
|
|
Jun 19 2006, 11:57 PM
Post
#15
|
|
![]() Group: Members Posts: 2,808 Joined: 21-March 05 From: Sydney, Australia Member No.: 6,686 |
QUOTE(gerhart.steiner @ Jun 19 2006, 06:02 PM) QUOTE(Sy Ali @ Jun 18 2006, 06:54 PM) QUOTE(Meanie @ Jun 18 2006, 10:29 PM) update will only refresh the Package Manager cache of packages listed on the remote feed But isn't the file:///path/to/feed/ the right way to tell it where the remote feed is? I used this setting and 'update' did not refresh the list. QUOTE you need the Packages files in your local feed in order for it to resolve dependencies for your local packages. once you got a proper Packages file in your local feed, then update will be able to refresh the cache with data from the local Packages file in your local feed assuming you create an appropriate Packages file for your local feed/files. What is the "local feed"? Where is it? Once I put files into this local feed, how do I install software and have it check dependancies automatically? Nothing I have been doing so far has worked with dependancy checking. If you made a local feed you also have to create a "Package" file in this feed. At the bottom of this page you can find the script to create this file. ...tschüß, Gerhart Das Script dort baut nur IPK Dateien aber macht nicht die Packages Datei. Man braucht da ipkg-make-index |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 05:08 PM |