General TC > Programming & Scripting - Unofficial
Quick hack to convert Debian packages.
Pats:
Nice job, Jason !
It saved me a lot of pains . Thanks really !
~ Pats
Jason W:
Rpms are easy to convert as well. I will use RealPlayer.rpm as an example. In the directory you have the rpm, do this:
mkdir directory
cd directory
rpm2cpio ../Realplayer.rpm | cpio -id
cd ..
mksqashfs directory realplayer.tcz
Pats:
I successfully converted simple apps like joe and other 4/5 from .deb to .tcz and an old version of gcc from here:
http://ftp.jp.debian.org/debian/pool/main/g/gcc-3.4/gcc-3.4_3.4.6-5_i386.deb
to .tcz. All works fine ! Marvelous !
But:
--- Quote ---rpm2cpio ../Realplayer.rpm | cpio -id
--- End quote ---
Sorry for my limited IQ, but from where can I get this rpm2cpio script ? Should I make the relevent changes in the script myself to accomodate rpm routine ?
Secondly, although I have not tried deb2tcz on the very latest and complex .debs like Opera or Firefox or even emacs - can you tell me - your scripts limitations on the higher side ?
Thirdly, you have said that this script should not be used to submit any deb to tcz converted extension to the repo. How can you know if someone has already used it for such a submision or will be used for it ?
~ Pats
Jason W:
rpm2cpio is an executable in base.
As for complexity, converting any other distros packages is simply converting a package format of a single package. Things like dependencies are not accounted for. With big or complex packages, a lot could be missing for it to run on TC, the error output would indicate what. In general the conversion routine was meant for small and simple packages for quick use.
As for how folks have made packages for the repo, there is a degree of trust involved, as with anything.
Pats:
Thnks for teaching me, how to fish - while converting debs and rpms to tczs !
This will be helpful to me a lot whenever I need some older versions of a
package or a very recent version - which is not available in the repo.
By the way - while doing this rpm2tcz conversion, I got this permision
error :
--- Code: ---tc@box:~/d1$ rpm2cpio ../tar-1.13.19-4.i386.rpm | cpio -id
cpio: cannot create symlink from ./bin/gtar to tar: Operation not permitted
1401 blocks
--- End code ---
( I tried the same command pre-pending `sudo` to it, but the same error. I
do not know, why ! ) But anyhow, the resultant tcz was working OK !
Then I tried something more bigger, converted following (older, stock rpms
from the RH CD):
emacs-20.7-34.i386.rpm
emacs-X11-20.7-34.i386.rpm
emacs-el-20.7-34.i386.rpm
emacs-leim-20.7-34.i386.rpm
emacs-nox-20.7-34.i386.rpm
And frankly, I was NOT expecting any success, but again the resultant tczs
are working seamlessly OK !
Thouhgt, I should give the success-feedback to you - in anticipation ! So if
any newbees are interested in this rpm2tcz conversion - this may be helpful
!
( My next target is experimenting with Firefox and Xorg 7.5 ...) :|))
Thnks again !
~ Pats
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version