How to install Flatpak apps on separate partition? (Solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
User avatar
sucuklu yumurta
Posts: 129
Joined: Thu Mar 09, 2023 3:12 am
Location: France
Has thanked: 320 times
Been thanked: 27 times

How to install Flatpak apps on separate partition? (Solved)

Post by sucuklu yumurta »

Hi,
Frugal Bookworm Pup64 installed in sda1
What should I do to install Flatpak applications in sda2 or sda3 ? The same question applies to usb memory

Regards

Last edited by sucuklu yumurta on Tue Jun 20, 2023 12:11 pm, edited 1 time in total.

Acer Aspire One AO751h Netbook Intel Atom CPU Z520 1.33 GHz:1-1 core 2 GB+2 GB Swap SSD. Sony 5200 mAh: BullseyePup 9.1.0 Lite on Kingston SSD Frugal
Acer Aspire 3 A315-58-34HD 8 GB DDR4 4.10 GHz Intel Core i3-1115G4 CPU 2-4 128 GB SSD: BookwormPup64

mistfire
Posts: 661
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 143 times

Re: How to install Flatpak apps on separate partition?

Post by mistfire »

sucuklu yumurta wrote: Mon Jun 19, 2023 1:32 am

Hi,
Frugal Bookworm Pup64 installed in sda1
What should I do to install Flatpak applications in sda2 or sda3 ? The same question applies to usb memory

Regards

you need to mount a partition at /var/lib/flatpak if you want to to install flatpak applications on separate partition

sucuklu yumurta wrote: Mon Jun 19, 2023 1:32 am

The same question applies to usb memory

Maybe but not advisable. Flatpak consumes a lot of disk space

User avatar
sucuklu yumurta
Posts: 129
Joined: Thu Mar 09, 2023 3:12 am
Location: France
Has thanked: 320 times
Been thanked: 27 times

Re: How to install Flatpak apps on separate partition?

Post by sucuklu yumurta »

Firefox, Telegram and Viber took up nearly 10 gb of space.
How can I link the path /var/lib/flatpak ?

Acer Aspire One AO751h Netbook Intel Atom CPU Z520 1.33 GHz:1-1 core 2 GB+2 GB Swap SSD. Sony 5200 mAh: BullseyePup 9.1.0 Lite on Kingston SSD Frugal
Acer Aspire 3 A315-58-34HD 8 GB DDR4 4.10 GHz Intel Core i3-1115G4 CPU 2-4 128 GB SSD: BookwormPup64

mistfire
Posts: 661
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 143 times

Re: How to install Flatpak apps on separate partition?

Post by mistfire »

sucuklu yumurta wrote: Tue Jun 20, 2023 4:19 am

Firefox, Telegram and Viber took up nearly 10 gb of space.
How can I link the path /var/lib/flatpak ?

just use this command:

Code: Select all

mount -o rw <storage device> /var/lib/flatpak

For example if your partition was /dev/sda2 then

Code: Select all

mount -o rw /dev/sda2 /var/lib/flatpak

Make sure that the partition to be mounted was a linux partition. Also dont forget to add that mountpoint to /etc/fstab

User avatar
sucuklu yumurta
Posts: 129
Joined: Thu Mar 09, 2023 3:12 am
Location: France
Has thanked: 320 times
Been thanked: 27 times

Re: How to install Flatpak apps on separate partition?

Post by sucuklu yumurta »

I haven't tried it yet, if this method works I can change the title to "solved"
regards
-------------------------------------------------------------------------------------------------
Hi,

I did the following operations:

sudo apt update

mount -o rw /dev/sda3 /var/lib/flatpak
then created folder named repo in sda3

flatpak install flathub org.mozilla.firefox

Then it gave this error

Looking for matches…
error: No remote refs found for ‘flathub’
:?:

Acer Aspire One AO751h Netbook Intel Atom CPU Z520 1.33 GHz:1-1 core 2 GB+2 GB Swap SSD. Sony 5200 mAh: BullseyePup 9.1.0 Lite on Kingston SSD Frugal
Acer Aspire 3 A315-58-34HD 8 GB DDR4 4.10 GHz Intel Core i3-1115G4 CPU 2-4 128 GB SSD: BookwormPup64

mistfire
Posts: 661
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 143 times

Re: How to install Flatpak apps on separate partition?

Post by mistfire »

sucuklu yumurta wrote: Tue Jun 20, 2023 4:36 am

I haven't tried it yet, if this method works I can change the title to "solved"
regards
-------------------------------------------------------------------------------------------------
Hi,

I did the following operations:

sudo apt update

mount -o rw /dev/sda3 /var/lib/flatpak
then created folder named repo in sda3

flatpak install flathub org.mozilla.firefox

Then it gave this error

Looking for matches…
error: No remote refs found for ‘flathub’
:?:

Did you add flathub repo using flatpak command?

Code: Select all

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Just type this command if you want to install firefox on flatpak

Code: Select all

flatpak install firefox
User avatar
sucuklu yumurta
Posts: 129
Joined: Thu Mar 09, 2023 3:12 am
Location: France
Has thanked: 320 times
Been thanked: 27 times

Re: How to install Flatpak apps on separate partition?

Post by sucuklu yumurta »

Forgot to add flathub repo :D

Respectively made:

Code: Select all

sudo apt update

Code: Select all

mount -o rw /dev/sda3 /var/lib/flatpak

Then created folder named ''repo'' in sda3

Code: Select all

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Code: Select all

flatpak install flathub org.mozilla.firefox

**************************************************
Firefox and Flatseal took up 5 gb disk space
I'm writing from version 114, it works :thumbup: Best Regards

Acer Aspire One AO751h Netbook Intel Atom CPU Z520 1.33 GHz:1-1 core 2 GB+2 GB Swap SSD. Sony 5200 mAh: BullseyePup 9.1.0 Lite on Kingston SSD Frugal
Acer Aspire 3 A315-58-34HD 8 GB DDR4 4.10 GHz Intel Core i3-1115G4 CPU 2-4 128 GB SSD: BookwormPup64

mistfire
Posts: 661
Joined: Thu Jul 16, 2020 2:16 am
Location: CALABARZON, PH
Has thanked: 3 times
Been thanked: 143 times

Re: How to install Flatpak apps on separate partition? (Solved)

Post by mistfire »

@sucuklu yumurta

Dont forget to add this code on /etc/rc.d/rc.local

Code: Select all

mount -o rw /dev/sda3 /var/lib/flatpak 2>/dev/null

To make sure that the partition for flatpak was always mounted on every reboot.

User avatar
sucuklu yumurta
Posts: 129
Joined: Thu Mar 09, 2023 3:12 am
Location: France
Has thanked: 320 times
Been thanked: 27 times

Re: How to install Flatpak apps on separate partition? (Solved)

Post by sucuklu yumurta »

Code: Select all

mount -o rw /dev/sda3 /var/lib/flatpak 2>/dev/null

To make sure that the partition for flatpak was always mounted on every reboot.

Yes, I rebooted and typed this and it worked

Last edited by mikewalsh on Wed Jun 21, 2023 12:43 pm, edited 1 time in total.
Reason: Completed 'quote' tags...

Acer Aspire One AO751h Netbook Intel Atom CPU Z520 1.33 GHz:1-1 core 2 GB+2 GB Swap SSD. Sony 5200 mAh: BullseyePup 9.1.0 Lite on Kingston SSD Frugal
Acer Aspire 3 A315-58-34HD 8 GB DDR4 4.10 GHz Intel Core i3-1115G4 CPU 2-4 128 GB SSD: BookwormPup64

User avatar
mikeslr
Posts: 2833
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 173 times
Been thanked: 855 times

Re: How to install Flatpak apps on separate partition? (Solved)

Post by mikeslr »

@sucuklu yumurta. If you want and your computer can handle an operating system which occupies 20-to-40 Gbs of Storage space and requires 8+ Gbs of RAM to perform your desired tasks, install debian bookworm, itself. You have no need to run Puppy nor incur the complexity involved in trying to convert Puppy into debian bookworm.

Or ask wiak or rockedge to provide a modified version of weedogit which (I think) now uses its original name "firstrib". See, viewtopic.php?p=50074&sid=257cde849a86c ... 18c#p50074. Whatever its name, it was able to create a portable version of many Major Distros, identical to such distros in every respect except for being portable: that is, it could be (like puppys) located in a folder on any Linux partition sharing that partition with other operating systems. In creating a portable version of a major distro, weedogit does a better and more user-friendly job than woof.

Post Reply

Return to “Beginners Help”