Page 1 of 1

I need a script to install 42 deb files

Posted: Thu Mar 02, 2023 12:54 am
by Amaponian

I downloaded LibreOffice_7.4.4.
Instead of one file, I have 42 deb files.
I have installed them manually.
I have done it twice for different installs.

Now I need to do it again for a fresh install of puppy.

This surely can be done using a script
But I don't know how it should be.
May be someone know.
Help here would be appreciated.

I'm using fossapup64-9.5 in a frugal install.

Greetings from Venezuela.


Re: I need a script to install 42 deb files

Posted: Thu Mar 02, 2023 2:12 am
by Clarity

A year or so ago, I saw a thread somewhere on how to combine multiple PETs into a single installable, BUT, I dont remember where this was.

Mind you, that PETs are not DEBs, yet the steps 'may' be the same

Maybe some other(s) knows of this thread somewhere.

Another idea with my 'limited;' knowledge is to

  1. boot a Fossapup64 pristine,

  2. install v7.4.4

  3. then save the session as a folder on a Linux partition.

Then boot your Fossa as you normally would with ITS normal save. then open your v7.4.4 save directory and run the PUP utility for dir2pet or dir2sfs.

Just a couple of thoughts


Re: I need a script to install 42 deb files

Posted: Thu Mar 02, 2023 2:56 am
by mikewalsh

@Clarity :-

I guess you're thinking of PaDS, from taersh. IIRC, @mikeslr is probably the closest thing we have to an "expert" on how this works, 'cos he uses it frequently.

taersh seems to have "gone to ground".

Mike. ;)


Re: I need a script to install 42 deb files

Posted: Thu Mar 02, 2023 3:53 am
by mow9902
Amaponian wrote: Thu Mar 02, 2023 12:54 am

I downloaded LibreOffice_7.4.4.
Instead of one file, I have 42 deb files.
I have installed them manually.
I have done it twice for different installs.

Now I need to do it again for a fresh install of puppy.

This surely can be done using a script
But I don't know how it should be.
May be someone know.
Help here would be appreciated.

I'm using fossapup64-9.5 in a frugal install.

Greetings from Venezuela.

There is 2 easier ways to use LO
1. download the appimage and use that. I simply place in a folder, and create a symlink to it named soffice
2. using the puppy menu > Document > Get Libreoffice download and install (creates an SFS file)

option 1
option 1
lo1.png (40.22 KiB) Viewed 490 times

Re: I need a script to install 42 deb files

Posted: Thu Mar 02, 2023 4:24 am
by houndstooth

You could create a small pupsave with JUST LibreOffice. There's an old cli utility here for installing multiple packages automatically. Others have written about it, but I couldn't not get it to work for me (dpkg):

Code: Select all

root# dpkg
dpkg: error: need an action option

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
root# 

42 .deb are typically too many, but if you do not mind clicking on each install, I use this line:

Code: Select all

for i in *.deb; do petget +$i; done

< than 10 or so packages it works great.

.sfs are great also if you understand what they are & how to use them.


Re: I need a script to install 42 deb files

Posted: Thu Mar 02, 2023 10:48 am
by mikewalsh

@Amaponian :-

mow9902 wrote: Thu Mar 02, 2023 3:53 am

1. download the appimage and use that. I simply place in a folder, and create a symlink to it named soffice

^^^ +1. THIS. Without a shadow of a doubt.

These have always been the simplest way to run LibreOffice that I've found. The one thing you might find it complains about is Java? Recent builds seem to require its installation, for some reason I don't understand.

Be that as it may, you can find the official AppImages here:-

https://www.libreoffice.org/download/appimage/

You could use my AppImage-based 'portable' - from here:-

viewtopic.php?t=5635

.....which simply addresses my pet hate with AppImages; although they're my favourite all-in-one, run-anywhere format, wherever you use them they leave orphan config files around behind them, all over the place. The portable keeps those config files together in one location, and lets you move everything from one system to another.

You can share it between multiple Pups on the same system. You can also run it from a flash-drive. In addition, you can use the included scripts to add/remove a Menu entry, which will fire it up regardless of where it is in the system..... Being AppImage-based, it's easy to update; just download a newer version, rename it to match the existing one, then swap 'em over. You can name an AppImage as anything you want, even remove the .AppImage suffix.....it will still run.

Mike. ;)


Re: I need a script to install 42 deb files

Posted: Fri Mar 10, 2023 1:35 am
by Amaponian
houndstooth wrote: Thu Mar 02, 2023 4:24 am

You could create a small pupsave with JUST LibreOffice. There's an old cli utility here for installing multiple packages automatically. Others have written about it, but I couldn't not get it to work for me (dpkg):

Code: Select all

root# dpkg
dpkg: error: need an action option

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
root# 

42 .deb are typically too many, but if you do not mind clicking on each install, I use this line:

Code: Select all

for i in *.deb; do petget +$i; done

< than 10 or so packages it works great.

.sfs are great also if you understand what they are & how to use them.

Closer to what I was looking for. thank you.


Re: I need a script to install 42 deb files

Posted: Fri Mar 10, 2023 12:20 pm
by Burunduk

The pkg utility can install multiple packages on Fossapup64-9.5

Open the terminal in the directory with the downloaded deb packages or cd to it and run pkg i *

(I've tried without cd: pkg i /path/to/dir/* — but it doesn't work.)


Re: I need a script to install 42 deb files

Posted: Fri Mar 10, 2023 2:11 pm
by Jinx

The Legacy Package Manager can install a set of downloaded .deb files for an application. Use step by step, find your LibreOffice and choose install LibreOffice. Choose the local store button instead of a repository and then click download. Repeat as needed for each repository. This will delete the .deb files after they are installed so make copies if you want to re-use them.