WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help with dpm  (Read 5150 times)

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Help with dpm
« 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

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

Code: [Select]
$ 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:

Code: [Select]
$ 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  :'(
TC CorePlus v.11.1 i686 & lots of coffe

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: Help with dpm
« Reply #1 on: April 25, 2020, 11:20:51 AM »
Hi ferran
Code: [Select]
$ 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:
Code: [Select]
dpm -s operaand see what that returns.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Help with dpm
« Reply #2 on: April 25, 2020, 11:53:49 AM »
Hi Rich. So happens this:

Code: [Select]
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:~$

TC CorePlus v.11.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Help with dpm
« Reply #3 on: April 25, 2020, 12:16:38 PM »
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?





« Last Edit: April 25, 2020, 12:21:45 PM by ferran »
TC CorePlus v.11.1 i686 & lots of coffe

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: Help with dpm
« Reply #4 on: April 25, 2020, 12:21:42 PM »
Hi ferran
Hi Rich. So happens this:

Code: [Select]
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.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Help with dpm
« Reply #5 on: April 25, 2020, 12:51:32 PM »
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:

Code: [Select]
tc@box:~/Downloads$ gzip -dl Packages.gz
         compressed        uncompressed  ratio uncompressed_name
               1820                7557  76.2% Packages

huh... but i tried

Code: [Select]
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

TC CorePlus v.11.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Help with dpm
« Reply #6 on: April 25, 2020, 01:13:45 PM »
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

Code: [Select]
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...  :(
« Last Edit: April 25, 2020, 01:20:22 PM by ferran »
TC CorePlus v.11.1 i686 & lots of coffe

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: Help with dpm
« Reply #7 on: April 25, 2020, 01:33:09 PM »
Hi ferran
Maybe something like this:
Code: [Select]
dpm mirror "https://deb.opera.com/opera/dists/stable/non-free/binary-i386/"
dpm update
dpm -s opera
Does 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.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: Help with dpm
« Reply #8 on: April 25, 2020, 01:56:26 PM »
Rich it don't works too

Code: [Select]
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.
TC CorePlus v.11.1 i686 & lots of coffe

Offline aswjh

  • Jr. Member
  • **
  • Posts: 85
Re: Help with dpm
« Reply #9 on: October 30, 2021, 05:48:52 AM »
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:
« Last Edit: October 30, 2021, 06:07:43 AM by aswjh »