![]() ![]() |
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.
|
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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? |
|
|
|
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. |
|
|
|
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... |
|
|
|
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 |
|
|
|
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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 11:38 PM |