Tiny Core Linux
General TC => Programming & Scripting - Unofficial => Topic started by: ferran on April 25, 2020, 10:58:49 AM
-
aswjh is the author of this interesting script made in 2015 to download and convert debian packages for TC:
http://forum.tinycorelinux.net/index.php/topic,18237.msg110828.html#msg110828 (http://forum.tinycorelinux.net/index.php/topic,18237.msg110828.html#msg110828)
1) as it's related above I decompressed the dpm-1.1.tar.gz package and installed on /mnt/sda1/tce/ondemand/
2) I did dpm pick
$ dpm pick
Version: 1.1
Usage: dpm [ mirror update config upgrade clean (link/link clear) ]
dpm [ -i -ic -if -w -wi -d -D -r -s -u ] extensions
mirror Pick out a fastest mirror, specify a string to match: dpm mirror chin
update Update packages database
config Config ld.so.conf and dpm.rc(TCEDIR/dpkg)
upgrade Update all packages
clean Delete deb files downloaded
link/link clear link to tce/optional or clear
show Show information of packages
-i Load local extension
-c Copy to file system when installing. If installed, copy again
-f Overwrite when installing. If installed, copy again
-w Download deb files and make tcz extension
-d Show depends
-D Show dependices
-r Show reverse dependices
-s Search packages
-u Update packages
3) And finally I tried to do the conversion of the last stable Opera browser's debian package:
$ dpm -wi opera-stable_68.0.3618.56_amd64.deb
Connecting to ftp.debian.org (130.89.148.12:80)
saving to '/mnt/sda1/tce/dpkg/mirrors/ftp.debian.org/dist/sid/main/i386/Packages.xz'
Packages.xz 100% |******************************************| 7988k 0:00:00 ETA
'/mnt/sda1/tce/dpkg/mirrors/ftp.debian.org/dist/sid/main/i386/Packages.xz' saved
package not found: opera-stable
So now what?
P.D.: Please aswjh come back soon :'(
-
Hi ferran
$ dpm -wi opera-stable_68.0.3618.56_amd64.deb
~----- SNIP -----~
'/mnt/sda1/tce/dpkg/mirrors/ftp.debian.org/dist/sid/main/i386/Packages.xz' saved
package not found: opera-stable ...
You are asking for a 64 bit package, but isn't main/i386/ a 32 bit repository?
Maybe try something like this:
dpm -s operaand see what that returns.
-
Hi Rich. So happens this:
tc@box:~$ dpm -s opera
geany-plugin-lineoperations
libequinox-p2-operations-java
libghc-operational-dev
libghc-operational-doc
libghc-operational-prof
node-babel-helper-builder-binary-assignment-operator-visitor
node-babel-plugin-syntax-exponentiation-operator
node-babel-plugin-transform-exponentiation-operator
phpunit-resource-operations
python3-booleanoperations
tc@box:~$ opera
sh: opera: not found
tc@box:~$
-
It seems (I don't know sure...) that exists a debian's repository of Opera's browser named "Packages.gz":
https://deb.opera.com/opera/dists/stable/non-free/binary-i386/
If I download this could be install it in TC?
-
Hi ferran
Hi Rich. So happens this:
tc@box:~$ dpm -s opera
~----- SNIP -----~
That command just does a search for the term opera.
It seems (I don't know sure...) that exists a debian's repository of Opera's browser named "Packages.gz":
https://deb.opera.com/opera/dists/stable/non-free/binary-i386/
If I download this we could be install it in TC?
That one might work if all the dependencies are available.
-
It's rare...
After I downloaded Packages.gz from https://deb.opera.com/opera/dists/stable/non-free/binary-i386/
and decompressed with gzip -dl Packages.gz i gained this:
tc@box:~/Downloads$ gzip -dl Packages.gz
compressed uncompressed ratio uncompressed_name
1820 7557 76.2% Packages
huh... but i tried
tc@box:~/Downloads$ dpm -wi Packages
package not found: Packages
tc@box:~/Downloads$
tc@box:~/Downloads$ ./Packages
sh: ./Packages: not found
tc@box:~/Downloads$
LeL. What fk... is that "Packages"? XD
-
TIP
If are you ask yourself why I don't wants to install our opera.tcz is because its version is less than the 20th (since this and the nexts we can play html5 streaming/live video, before don't).
All right. Next test:
i downloaded the .rpm package from the Opera's website
tc@box:~/Downloads$ sudo rpm -i opera-stable_68.0.3618.56_amd64.rpm
tc@box:~/Downloads$ ls
Aham...
I think I'm going to worth with another things... :(
-
Hi ferran
Maybe something like this:
dpm mirror "https://deb.opera.com/opera/dists/stable/non-free/binary-i386/"
dpm update
dpm -s operaDoes it list an opera package now?
This is all guesswork on my part. I'm not familiar with this script or how .deb packages are handled.
-
Rich it don't works too
root@box:/home/tc/Downloads# dpm mirror "https://deb.opera.com/opera/dists/stable/non-free
/binary-i386/"
root@box:/home/tc/Downloads# dpm update
Connecting to deb.opera.com (151.101.134.202:443)
wget: server returned error: HTTP/1.1 404 Not Found
Connecting to deb.opera.com (151.101.134.202:443)
wget: server returned error: HTTP/1.1 404 Not Found
Connecting to deb.opera.com (151.101.134.202:443)
wget: server returned error: HTTP/1.1 404 Not Found
root@box:/home/tc/Downloads#
Rich: I'm aware of this. I appreciate all the time you're giving me.
Maybe the author of this script could to clear more what I need to do soon.
-
Sorry so long to reply.
#needs squashfs-tools openssl:
tce-load -wi squashfs-tools openssl
#first, modify ld.so.conf and config:
dpm config
#now search or install package:
dpm -s geany
dpm -wi geany
#If necessary, select a faster mirror:
dpm mirror unitedstates
or dpm mirror, then type the country
or MIRROR=http://mirror.nju.edu.cn/debian/ CODENAME=buster SUBDIV=main dpm config
or MIRROR=http://mirror.nju.edu.cn/debian/ dpm -wi xxx
#convert deb to tcz
sudo deb2tcz.sh xxx.deb
latest dpm 1.1.2: