I need a script to install 42 deb files

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

I need a script to install 42 deb files

Post 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.

Clarity
Posts: 3825
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1622 times
Been thanked: 521 times

Re: I need a script to install 42 deb files

Post 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

User avatar
mikewalsh
Moderator
Posts: 6155
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 793 times
Been thanked: 1979 times

Re: I need a script to install 42 deb files

Post 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. ;)

mow9902
Posts: 195
Joined: Fri Jul 24, 2020 11:57 pm
Has thanked: 15 times
Been thanked: 61 times

Re: I need a script to install 42 deb files

Post 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 484 times
Attachments
option 2
option 2
lo2.png (39.02 KiB) Viewed 484 times
User avatar
houndstooth
Posts: 226
Joined: Sun Jul 17, 2022 9:41 am
Location: U.S.A.
Has thanked: 12 times
Been thanked: 17 times

Re: I need a script to install 42 deb files

Post 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.

User avatar
mikewalsh
Moderator
Posts: 6155
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 793 times
Been thanked: 1979 times

Re: I need a script to install 42 deb files

Post 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. ;)

Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Re: I need a script to install 42 deb files

Post 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.

Burunduk
Posts: 251
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 127 times

Re: I need a script to install 42 deb files

Post 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.)

Jinx
Posts: 29
Joined: Sat Oct 08, 2022 6:38 pm
Has thanked: 3 times
Been thanked: 6 times

Re: I need a script to install 42 deb files

Post 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.

Post Reply

Return to “Users”