Page 1 of 1
How to make a list of user installed applcations
Posted: Wed Feb 07, 2024 9:19 pm
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
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.
Re: How to make a list of user installed applcations
Posted: Thu Feb 08, 2024 10:26 am
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.
Re: How to make a list of user installed applcations
Posted: Thu Feb 08, 2024 6:41 pm
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
Re: How to make a list of user installed applcations
Posted: Fri Feb 09, 2024 3:50 pm
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.
Re: How to make a list of user installed applcations
Posted: Fri Feb 09, 2024 4:42 pm
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
Re: How to make a list of user installed applcations
Posted: Fri Feb 09, 2024 10:27 pm
by Chelsea80
@cobaka
Thanks, a useful explanation and adjustment to the script -
Will try it out next time I add an application -
Chelsea80
Re: How to make a list of user installed applcations
Posted: Mon Feb 12, 2024 9:59 am
by Jasper
Also, the same can be applied to Python packages and their versions
Code: Select all
pip list > installed_python_packages.txt