WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Importing single deb-package?  (Read 5251 times)

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Importing single deb-package?
« on: June 15, 2015, 10:02:09 AM »
Is it possible to import packages from outside any repo in the way dpkg-reconfigure does?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #1 on: June 15, 2015, 11:33:04 AM »
You mean install a single deb that is on the local machine?

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: Importing single deb-package?
« Reply #2 on: June 15, 2015, 11:37:38 AM »
Exactly.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #3 on: June 15, 2015, 11:59:48 AM »
Ok, that is what the original deb2tcz script did.  Would be simple to make a deb2sce, of course that name is taken by a function used by sce-import.  I will aim to create a simple deb to sce.  I would rather convert it to an sce to be installed, supporting installing as a deb is not  feasible.

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: Importing single deb-package?
« Reply #4 on: June 15, 2015, 01:45:54 PM »
That would be very useful, indeed. Regarding the name, the best I have come up with is 'sce-fromdeb' so as to keep it in line with the other sce-functions.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #5 on: June 15, 2015, 08:06:41 PM »
Maybe sce-deb2sce as it names it's function.  deb2sce could be renamed, but the sce- prefix I agree it should have anyway like th other sce tools and makes it easy to find.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #6 on: June 20, 2015, 07:57:02 PM »
I am working on this, maybe in the next week or so it can appear.  I would like to have utilities like this start as an extension as to not make for continual updating of 5 dCore's as bugs are found.  Then when stable can be put in base. 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #7 on: June 20, 2015, 08:54:49 PM »
Actually, finished it and it tested out ok.  sce-deb2sce is availalbe as an extension for x86 and armv7 dCore ports.

Simple usage:  sce-deb2sce file_5.22+15-2_i386.deb

Also, supports having a startup script in the same directory as the deb, this case would need to be named file.deb2sce and it  will be included in the sce just like the ones on the server.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: Importing single deb-package?
« Reply #8 on: June 22, 2015, 02:07:41 AM »
hi jason,

a wrong use of sce-deb2sce deletes the import-folder with all stored deb-packages:

tc@box:~$ sce-deb2sce
Please run as root or with the sudo command.
tc@box:~$ sudo sce-deb2sce

You must specify a deb file.
Only Debian packages work with this.

after this action the import-folder is deleted.

thank you for your help.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #9 on: June 22, 2015, 08:00:33 AM »
Uh oh, thanks for pointing this out. I will fix it now.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #10 on: June 22, 2015, 08:16:05 AM »
Uploaded.  Yeah, when deleting files or directories that include a variable we have to make sure the variable is not null.  Should be fixed now, thanks for the report.

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: Importing single deb-package?
« Reply #11 on: June 24, 2015, 03:57:51 AM »
I finally got around to testing it and it works well. Thank you very much!

This is a very useful extension. It was a good move to have it tested as an extension rather than include it into the image. However, I do think it should eventually be integrated after it has been tested.

I would suggest to have the sce-file automatically moved under 'tce/sce/' so that it appears in the list of sce-load without having to manually move it. What do you think?

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: Importing single deb-package?
« Reply #12 on: June 24, 2015, 05:19:13 AM »
I think this function could be part of sce-import, since it imports a deb in the system
« Last Edit: June 24, 2015, 05:21:03 AM by jls_legalize »
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Importing single deb-package?
« Reply #13 on: June 25, 2015, 07:48:06 AM »
I will think about it, but it is only for a single deb in the same directory.  Perhaps best left standalone, but could be in base once tested and stable.