Local pkg index

Post your general questions or comments about GhostBSD here!
Post Reply
Karasamur
Posts: 6
Joined: Thu Aug 03, 2023 5:23 pm

Local pkg index

Post by Karasamur »

Hi.
I'm using Ghostbsd latest. I've downloaded around 7000 packages from the main repositories. All in one directory in a spare place.
How can I install all of these 7000 packages from the backup directory without downloading them from the internet when the system crashes and reinstalls. My only command is my preference.
User avatar
ericbsd
Developer
Posts: 2056
Joined: Mon Nov 19, 2012 7:54 pm

Re: Local pkg index

Post by ericbsd »

I am trying to figure out if there is a question in your post that is unclear to me.
Karasamur
Posts: 6
Joined: Thu Aug 03, 2023 5:23 pm

Re: Local pkg index

Post by Karasamur »

mrb. Thank you for your attention. I asked for a command that prints all the package names installed on the system as a text file. For example: gtkam libreoffice gimp eog eom filezilla .......like .
Karasamur
Posts: 6
Joined: Thu Aug 03, 2023 5:23 pm

Re: Local pkg index

Post by Karasamur »

mrb. Thank you for your attention. I asked for a command that prints all the package names installed on the system as a text file. For example: gtkam libreoffice gimp eog eom filezilla .......like .
nevets
Posts: 149
Joined: Tue Jun 23, 2020 3:54 am

Re: Local pkg index

Post by nevets »

From a terminal, this command lists the packages
pkg info
Next, in the terminal menu select Edit > Copy
Then, In pluma select from the menu Edit > Paste
Karasamur
Posts: 6
Joined: Thu Aug 03, 2023 5:23 pm

Re: Local pkg index

Post by Karasamur »

hello.thank you for your response.your suggestion gives picture #1. What I want is as picture #2.

#1:
Zsh-antigen/2.2.....
zssh/1.5c.......
gimp/4.5....
Libreoffice/4.5......

#2:
zssh zsh-antigen gimp gtkam libreoffice ......
Have a nice day.
Karasamur
Posts: 6
Joined: Thu Aug 03, 2023 5:23 pm

Re: Local pkg index

Post by Karasamur »

Hi.
I was able to get the list of all packages with the
#pkg query %n>pkglist.txt
command and convert this list into plain text with the "selection/combine lines" option of the "kate" program.
Post Reply