Author Topic: Browse .ipk-files with midnight commander  (Read 6586 times)

cybersphinx

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Browse .ipk-files with midnight commander
« on: November 09, 2004, 04:23:36 pm »
Does anyone know how to browse .ipk-files with midnight commander (like .deb-files)? I found a thread here on how to display info on viewing, but I'd like to be able to open them like other archives. Adapting the .deb rules doesn't work, because .ipks are tar-files and .debs are ar archives. I could use the .tar.gz rule, but then I'd always have to open the data.tar.gz file separately. Any other solutions? Thanks.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Browse .ipk-files with midnight commander
« Reply #1 on: November 09, 2004, 09:24:55 pm »
Dont use MC so I not sure if this is what you want, but I have a shell script for viewing the contents of ipks.

Code: [Select]
#!/bin/bash
tar xzOf $1 ./data.tar.gz | tar tzf -

You should be able to convert the tar command to work in MC

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Browse .ipk-files with midnight commander
« Reply #2 on: March 24, 2005, 05:24:54 am »
Quote
Does anyone know how to browse .ipk-files with midnight commander (like .deb-files)? I found a thread here on how to display info on viewing, but I'd like to be able to open them like other archives. Adapting the .deb rules doesn't work, because .ipks are tar-files and .debs are ar archives. I could use the .tar.gz rule, but then I'd always have to open the data.tar.gz file separately. Any other solutions? Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=51236\"][{POST_SNAPBACK}][/a][/div]

Hi

I have just done this on my setup for MC

Open $HOME/mc/bindings

Amoungst the Archives section of the script add the following

# ipk
regex/\.ipk$
       Open=%cd %p#utar
        View=%view{ascii} tar tvvf %f

The gaps are tabs and finish with a carraige return

This will open up the archive and typically display:-
control.tar.gz
data.tar.gz
debian-binary

The tar.gz files can then be opened as normal with the bindings for those files and there you have the whole lot to browse through or extract etc

regards
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
Browse .ipk-files with midnight commander
« Reply #3 on: March 24, 2005, 06:13:58 am »
Quote
Quote
Does anyone know how to browse .ipk-files with midnight commander (like .deb-files)? I found a thread here on how to display info on viewing, but I'd like to be able to open them like other archives. Adapting the .deb rules doesn't work, because .ipks are tar-files and .debs are ar archives. I could use the .tar.gz rule, but then I'd always have to open the data.tar.gz file separately. Any other solutions? Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=51236\"][{POST_SNAPBACK}][/a][/div]

Hi

I have just done this on my setup for MC

Open $HOME/mc/bindings

Amoungst the Archives section of the script add the following

# ipk
regex/\.ipk$
       Open=%cd %p#utar
        View=%view{ascii} tar tvvf %f

The gaps are tabs and finish with a carraige return

This will open up the archive and typically display:-
control.tar.gz
data.tar.gz
debian-binary

The tar.gz files can then be opened as normal with the bindings for those files and there you have the whole lot to browse through or extract etc

regards
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72095\"][{POST_SNAPBACK}][/a][/div]
This will not work for me - but this does the job:
Code: [Select]
regex/\.ipk$
          Open=%cd %p#utar
          View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf %f

by the way - if you want to browse your C860 backup file for restoring a single file these lines are your friends:
Code: [Select]
regex/\.backup_SCL860-JP-1$
          Open=%cd %p#utar
          View=%view{ascii} tar tvvf %f
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Browse .ipk-files with midnight commander
« Reply #4 on: March 24, 2005, 06:50:02 am »
I think the problem is that  View=%view{ascii} tar tvvf %f
should be  View=%view{ascii} tar ztvf %f

z for the gunzip
« Last Edit: March 24, 2005, 06:50:26 am by pgas »
SLC-860 cacko / senao wifi

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Browse .ipk-files with midnight commander
« Reply #5 on: March 25, 2005, 05:10:59 am »
Quote
Open $HOME/mc/bindings
Amoungst the Archives section of the script add the following
There is no ~/mc directory on my Zaurus.

There is an ~/.mc directory but in it there is no bindings file.

Should I just create it? And what should it look like?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
Browse .ipk-files with midnight commander
« Reply #6 on: March 25, 2005, 07:04:52 am »
Quote
Quote
Open $HOME/mc/bindings
Amoungst the Archives section of the script add the following
There is no ~/mc directory on my Zaurus.

There is an ~/.mc directory but in it there is no bindings file.

Should I just create it? And what should it look like?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72222\"][{POST_SNAPBACK}][/a][/div]
You should better take a binding file from an existing desktop mc and modify it.
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Browse .ipk-files with midnight commander
« Reply #7 on: March 25, 2005, 07:49:48 am »
Quote
You should better take a binding file from an existing desktop mc and modify it.
Can someone send me a functioning bindings file for the use on a Zaurus? I don't have a desktop mc version...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Browse .ipk-files with midnight commander
« Reply #8 on: March 25, 2005, 01:03:06 pm »
Quote
Quote
Open $HOME/mc/bindings
Amoungst the Archives section of the script add the following
There is no ~/mc directory on my Zaurus.

There is an ~/.mc directory but in it there is no bindings file.

Should I just create it? And what should it look like?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72222\"][{POST_SNAPBACK}][/a][/div]

Hi

The setup on the Zaurus package of MC is a little different

On mine the /home/etc/mc/mc.ext file has the key bindings in it

I don't use the copy of MC on the Z to browse .ipk files so don't know if it works, however it does on the desktop set and I can check what I am installing before I do it and check what is already on the Z for any overwrites or conflicts.

regards
« Last Edit: March 25, 2005, 01:23:25 pm by melee »
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Browse .ipk-files with midnight commander
« Reply #9 on: March 26, 2005, 07:25:12 am »
Quote
The setup on the Zaurus package of MC is a little different

On mine the /home/etc/mc/mc.ext file has the key bindings in it
Thanks, I use Cacko 1.22 and found the file is in /home/root/usr/share/mc/mc.ext
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze