How to make a list of user installed applcations

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

How to make a list of user installed applcations

Post by Jasper »

Once you get used to using Puppy regularly and begin to add new applications it is useful to have a list to refer to, just in case you encounter issues and have to re-install.

I take no credit for this tip, I found it on the forum and have lost who to thank for it. So "THANK YOU" if it was you :thumbup2:

In terminal enter

Code: Select all


cut -f 1,5,10 -d \|  /var/packages/user-installed-packages > /root/my-installed-packages.csv

This will create a file which will open up in Gnumeric and list all the applications that you have installed. It will save it in your Home directory.

User avatar
bigpup
Moderator
Posts: 7031
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 925 times
Been thanked: 1535 times

Re: How to make a list of user installed applcations

Post by bigpup »

If you change the end of the command to .txt

Code: Select all

cut -f 1,5,10 -d \|  /var/packages/user-installed-packages > /root/my-installed-packages.txt

It will produce a text file that will usually open in the default text editor.

It seems a lot easier to read in this format.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Chelsea80
Posts: 365
Joined: Tue Mar 09, 2021 12:44 am
Has thanked: 47 times
Been thanked: 75 times

Re: How to make a list of user installed applcations

Post by Chelsea80 »

@Jasper

Thank you sharing, it could prove quite useful to me -

@bigpup

Thank you, I changed the .csv to .txt as it is more easy for me to read -
.
.
I found that if used more than once it automatically overwrites the previous saved one -

Is there a way to stop this happening as it might be handy to keep a 'running date log' of previous saves -

Chelsea80

EDIT

Is there a way to stop this happening as it might be handy to keep a 'running date log' of previous saves -

It's OK, I have worked it out -

Put a different number in front of the new file save name or a date or whatever to stop the previous saved file name from being overwritten -

Then you can have separate lists as and when new user applications are installed -

Chelsea80

Chelsea80

1. BionicPup32+28 19.03 - Linux 4.9.163 - lxpup - 32-pae [i686] - (UPup Bionic Beaver)
....Frugal Install - Internal HDD - Gateway MX8716b - HDD 120GB - RAM 2GB

2. Friendly-Bionic32 v1.1
....USB Stick 2GB

keniv
Posts: 656
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 111 times
Been thanked: 67 times

Re: How to make a list of user installed applcations

Post by keniv »

@Jasper and @bigpup

I've also just used this but with the .text ending. Thanks for a good tip.
@Chelsea80

Is there a way to stop this happening as it might be handy to keep a 'running date log' of previous saves -

It's OK, I have worked it out -

Put a different number in front of the new file save name or a date or whatever to stop the previous saved file name from being overwritten -

Then you can have separate lists as and when new user applications are installed -

Again a useful tip.

Regards,

Ken.

User avatar
cobaka
Posts: 572
Joined: Thu Jul 16, 2020 6:04 am
Location: Central Coast, NSW - au
Has thanked: 94 times
Been thanked: 63 times

Re: How to make a list of user installed applcations

Post by cobaka »

Hello @Jasper

Below
The output redirection '>' operator writes to a disk file rather than the terminal [file].
Using a double '>>' operator you can append to a file, rather than overwriting the previously written info in the file .
And the other 'stuff' puts the file into a different directory - where spot and finn store files. This is a useful place to put misc files.

Code: Select all

 cut -f 1,5,10 -d \| /var/packages/user-installed-packages >> ~/../home/my-installed-packages.txt

In Puppy Linux there are two 'home' directories. One is called 'home'. The other is called tilde - '~'
'home' is where the faithful 'spot' keeps her files. 'home' is one directory up and then one down from '~'.
Try cd ~ or ls ~ or (even more informative) ls ~/../
or ls ~/../home > /home/demo.txt

cobaka

Last edited by cobaka on Sun Feb 11, 2024 6:49 am, edited 1 time in total.

собака --> это Русский --> a dog
"c" -- say "s" - as in "see" or "scent" or "sob".

User avatar
Chelsea80
Posts: 365
Joined: Tue Mar 09, 2021 12:44 am
Has thanked: 47 times
Been thanked: 75 times

Re: How to make a list of user installed applcations

Post by Chelsea80 »

@cobaka

Thanks, a useful explanation and adjustment to the script -

Will try it out next time I add an application -

Chelsea80

Chelsea80

1. BionicPup32+28 19.03 - Linux 4.9.163 - lxpup - 32-pae [i686] - (UPup Bionic Beaver)
....Frugal Install - Internal HDD - Gateway MX8716b - HDD 120GB - RAM 2GB

2. Friendly-Bionic32 v1.1
....USB Stick 2GB

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: How to make a list of user installed applcations

Post by Jasper »

Also, the same can be applied to Python packages and their versions

Code: Select all


pip list > installed_python_packages.txt

Post Reply

Return to “Tips & Tweaks”