LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-18-2024, 01:10 PM   #1
drpeppercan
Member
 
Registered: Jan 2017
Location: Montreal
Distribution: Pop! OS
Posts: 70

Rep: Reputation: Disabled
Question I could use advise on setting up apps on a 2nd drive


I am not looking for detailed instructions, for now I just want to hear what's your summarized strategy for this kind of project.
I have about 25% of space left in the system file. So I am thinking of setting up most of my apps on a 2nd drive. Should I use a software center, a package manager, etc, to simplify the process? If so, which one do you recommend? If your approach doesn't use software centers nor package managers that's fine, I'm still curious to hear about it.
Btw, I am using Pop! OS

Last edited by drpeppercan; 10-18-2024 at 01:41 PM.
 
Old 10-18-2024, 01:17 PM   #2
drpeppercan
Member
 
Registered: Jan 2017
Location: Montreal
Distribution: Pop! OS
Posts: 70

Original Poster
Rep: Reputation: Disabled
This is what Copilot advised, what do you think?:

"Setting up apps on a second drive in Pop!_OS can be managed in several ways, depending on your preferences and comfort level with different tools. Here are a few approaches you can consider:

### Using Software Centers
**GNOME Software** is a user-friendly option that integrates well with Pop!_OS. It allows you to manage Flatpak and Snap applications easily. You can configure it to install apps on a secondary drive by setting up the appropriate Flatpak or Snap installations.

### Using Package Managers
**Flatpak** and **Snap** are great for managing applications on a secondary drive. Here's how you can set them up:

#### Flatpak
1. **Create a new installation**:

sudo mkdir -p /etc/flatpak/installations.d
sudoedit /etc/flatpak/installations.d/extra.conf
```
2. **Add the following content to the file**:
```ini
[Installation "extra"]
Path=/path/to/your/second/drive/flatpak
DisplayName=Extra Installation
StorageType=harddisk
```
Replace `/path/to/your/second/drive/flatpak` with the actual path to your second drive.

3. **Install apps to the new installation**:

flatpak --installation=extra install flathub org.gimp.GIMP
```

#### Snap
1. **Configure Snap to use a different directory**:

sudo snap set system refresh.retain=2
sudo mkdir /path/to/your/second/drive/snap
sudo mount --bind /path/to/your/second/drive/snap /var/lib/snapd/snaps
```

### Using Symlinks
For applications installed via traditional package managers like `apt`, you can use symbolic links to move specific directories to your second drive:

1. **Move the directory**:

sudo mv /path/to/application /path/to/your/second/drive/application
```
2. **Create a symlink**:

sudo ln -s /path/to/your/second/drive/application /path/to/application
```

### Recommendations
- **For ease of use**: GNOME Software with Flatpak or Snap integration.
- **For flexibility and control**: Directly using Flatpak or Snap with custom installations.
- **For specific applications**: Symlinks can be useful for moving individual applications or directories.

Would you like more detailed instructions on any of these methods?

Source: Conversation with Copilot, 10/18/2024
(1) Installing apps to a different drive : r/pop_os - Reddit. https://www.reddit.com/r/pop_os/comm...fferent_drive/.
(2) Install programs on secondary drive : r/pop_os - Reddit. https://www.reddit.com/r/pop_os/comm...condary_drive/.
(3) Dual boot Pop!OS + Windows 10/11 (very easy) · GitHub. https://gist.github.com/subrezon/b04...61eebb2e17ebd8.
(4) How to Seamlessly Install Google Drive on Pop!_OS Desktop. https://thelinuxcode.com/install-goo...ive-on-pop_os/.
(5) How To Dual Boot Windows And Pop!_OS - OSTechNix. https://ostechnix.com/dual-boot-windows-and-pop-os/."

Last edited by drpeppercan; 10-18-2024 at 01:19 PM.
 
  


Reply

Tags
package manager


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB 3 / eSata drive filesystem advise for use with linux and windows wanderingDrummer Linux - General 3 04-12-2012 01:19 PM
Encrypt 2nd drive without 2nd boot time passphrase: How? gargamel Slackware - Installation 15 05-30-2009 02:50 PM
Slackware as 2nd os on 2nd hdd chd_lad Linux - Newbie 7 04-05-2008 03:43 PM
Newbie need advise setting up server and which Mail software to use rodgerbruce Linux - Newbie 1 01-01-2008 03:32 AM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration