OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Browse .ipk-files with midnight commander
cybersphinx
post Nov 9 2004, 01:23 PM
Post #1





Group: Members
Posts: 70
Joined: 24-May 04
From: Germany
Member No.: 3,406



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.
Go to the top of the page
 
+Quote Post
Stubear
post Nov 9 2004, 06:24 PM
Post #2





Group: Members
Posts: 1,164
Joined: 17-December 03
From: Melbourne, AUSTRALIA
Member No.: 1,219



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
#!/bin/bash
tar xzOf $1 ./data.tar.gz | tar tzf -


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

Stu
Go to the top of the page
 
+Quote Post
melee
post Mar 24 2005, 02:24 AM
Post #3





Group: Members
Posts: 69
Joined: 17-March 05
Member No.: 6,651



QUOTE(cybersphinx @ Nov 9 2004, 10:23 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.
*


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
Go to the top of the page
 
+Quote Post
silvio
post Mar 24 2005, 03:13 AM
Post #4





Group: Members
Posts: 68
Joined: 13-February 05
From: Germany, Bremen
Member No.: 6,465



QUOTE(melee @ Mar 24 2005, 12:24 PM)
QUOTE(cybersphinx @ Nov 9 2004, 10:23 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.
*


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
*


This will not work for me - but this does the job:
CODE
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
regex/\.backup_SCL860-JP-1$
         Open=%cd %p#utar
         View=%view{ascii} tar tvvf %f
Go to the top of the page
 
+Quote Post
pgas
post Mar 24 2005, 03:50 AM
Post #5





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



I think the problem is that View=%view{ascii} tar tvvf %f
should be View=%view{ascii} tar ztvf %f

z for the gunzip
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Mar 25 2005, 02:10 AM
Post #6





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(melee @ Mar 24 2005, 11:24 AM)
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?
Go to the top of the page
 
+Quote Post
silvio
post Mar 25 2005, 04:04 AM
Post #7





Group: Members
Posts: 68
Joined: 13-February 05
From: Germany, Bremen
Member No.: 6,465



QUOTE(rehorrericha @ Mar 25 2005, 12:10 PM)
QUOTE(melee @ Mar 24 2005, 11:24 AM)
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?
*


You should better take a binding file from an existing desktop mc and modify it.
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Mar 25 2005, 04:49 AM
Post #8





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(silvio @ Mar 25 2005, 01:04 PM)
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...
Go to the top of the page
 
+Quote Post
melee
post Mar 25 2005, 10:03 AM
Post #9





Group: Members
Posts: 69
Joined: 17-March 05
Member No.: 6,651



QUOTE(rehorrericha @ Mar 25 2005, 11:10 AM)
QUOTE(melee @ Mar 24 2005, 11:24 AM)
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?
*



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
Go to the top of the page
 
+Quote Post
ShiroiKuma
post Mar 26 2005, 04:25 AM
Post #10





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



QUOTE(melee @ Mar 25 2005, 07:03 PM)
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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 31st October 2014 - 03:30 AM