Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: sm8ps on June 15, 2015, 10:02:09 AM

Title: Importing single deb-package?
Post by: sm8ps on June 15, 2015, 10:02:09 AM
Is it possible to import packages from outside any repo in the way dpkg-reconfigure does?
Title: Re: Importing single deb-package?
Post by: Jason W on June 15, 2015, 11:33:04 AM
You mean install a single deb that is on the local machine?
Title: Re: Importing single deb-package?
Post by: sm8ps on June 15, 2015, 11:37:38 AM
Exactly.
Title: Re: Importing single deb-package?
Post by: Jason W 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.
Title: Re: Importing single deb-package?
Post by: sm8ps 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.
Title: Re: Importing single deb-package?
Post by: Jason W 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.
Title: Re: Importing single deb-package?
Post by: Jason W 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. 
Title: Re: Importing single deb-package?
Post by: Jason W 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.
Title: Re: Importing single deb-package?
Post by: netnomad 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.
Title: Re: Importing single deb-package?
Post by: Jason W on June 22, 2015, 08:00:33 AM
Uh oh, thanks for pointing this out. I will fix it now.
Title: Re: Importing single deb-package?
Post by: Jason W 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.
Title: Re: Importing single deb-package?
Post by: sm8ps 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?
Title: Re: Importing single deb-package?
Post by: jls 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
Title: Re: Importing single deb-package?
Post by: Jason W 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.