You are not logged in.
Pages: 1
Topic closed
Hi there
I have my Arch working in a 8.2GB partition for a while and I've been surviving with extreme lightweight programs, cleaning cache and this kind of stuff. But now I'm running out of space (329MB free) and I need to install a couple of new programs (e.g. Blender with 468.48MB). I do have another disk, which is used for data storage and has a loot of available room.
Is there a way to change the install destination directory of a package?
For example, in Windows most of times we can use advanced options in wizards to select the installation folder.
Is it possible to reproduce that in Arch? I mean, to install Blender in the second disk instead of in the root one?
I appreciate any suggestion.
Thank you!
Last edited by vinicius (2013-05-03 02:55:31)
Offline
Did you try cleaning out your pacman cache (/var/cache/pacman/pkg/)? Also, run a tool like ncdu will tell you which directories take up a lot of space. If /var is one of them you may want to see if cleaning up your old journald log files helps (I did it recently and freed up a lot of space).
Offline
Not easily. There is no "install directory" on linux. Files from a package are distributed across the file system depending on their purpose/type. If you want, you can move the data directory (/usr/share/<dir>) to your data partition and bind-mount the directory on your data partition to /usr/share/<dir>. You could also try some form of filesystem merging (unionfs, aufs) but will probably be painful.
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
Did you try cleaning out your pacman cache (/var/cache/pacman/pkg/)?
Thanks, dodo3773.
I frequently run pacman -Scc to address that. I know it has some cons but that's life.
Also, run a tool like ncdu will tell you which directories take up a lot of space.
I like to use the following command to check that out:
find . -type f -size +10M -exec ls -lh {} \; | awk '{ print $5 ": " $9 }'
If /var is one of them you may want to see if cleaning up your old journald log files helps (I did it recently and freed up a lot of space).
Do you know exactly where the journal logs are stored? I'm asking because I think I'm already handling it with a couple of fstab entries:
tmpfs /tmp tmpfs defaults,noatime,mode=755 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=755 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=755 0 0
Not easily. There is no "install directory" on linux. Files from a package are distributed across the file system depending on their purpose/type. If you want, you can move the data directory (/usr/share/<dir>) to your data partition and bind-mount the directory on your data partition to /usr/share/<dir>.
Thanks for the suggestion, Stebalien.
I was thinking in something close to this idea but only for some specific packages. The reason is because the small partition is in a SSD so it is nice to not move too much things from there in order to keep be benefit of high speed access.
Is there a way to at least track what files and folders where created by installing a package?
Or, even better, preview that changes before actually install?
Last edited by vinicius (2013-05-03 13:02:18)
Offline
Is there a way to at least track what files and folders where created by installing a package?
Or, even better, preview that changes before actually install?
You can list files of installed packages using `pacman -Ql`. For packages in the repos, a list of files is available on the web, and for any package, you can simply use
tar -tf <package>.pkg.tar.xz
to list the contents.
Offline
Do you know exactly where the journal logs are stored? I'm asking because I think I'm already handling it with a couple of fstab entries:
/var/log/journal/
Is there a way to at least track what files and folders where created by installing a package?
Or, even better, preview that changes before actually install?
pacman -Ql packagename
Offline
You can resize your root partition at the expense of another. This will solve your problem once and for all.
Offline
pacman -Ql packagename
Nice hint. It doesn't actually solve the problem but it's useful (with some mv and ln -s).
Thank you guys.
Offline
/var/tmp should not be on tmpfs, should it? Aren't the files there supposed to persist across boots?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
/var/tmp should not be on tmpfs, should it? Aren't the files there supposed to persist across boots?
I really don't know if there is a problem by doing that. Everything is working fine here until now.
Offline
/var/log shouldn't be on tmpfs either. If you want the journal to write to volatile storage, then just configure it in /etc/systemd/journald.conf.
All right. I'll check that out.
But what kind of data in /var/log and /var/tmp should persist between boots?
Edit:
Now I understand the differences between /tmp and /var/tmp (link1, link2, link3).
But still didn't get what is the matter with /var/log.
Last edited by vinicius (2013-05-06 16:22:30)
Offline
you don't see it as a problem that all of your log files a gone after a reboot?
Offline
I sugest this:
format yoy 'new hardisk' and move home to that and edit it to mount /home from the new disk
remmember empty home previous to (re)mount home from the /etc/fstab to prevent problems
this can clean space... and all possible partitions (/boot for examble) move to another disk and mount them from fstab (remmember this to for swap)
Well, I suppose that this is somekind of signature, no?
Offline
Hey your solution is easy to me.-
1.- Download the source of Blender, uncompress it where you want and then simply create a link to the main Blender app where you want
2.- Next time you install Arch Linux make the swap partition bigger, it will save you a lot of headache
But i think the first one is the best for you, good luck !!!
With great power there must also come -- great responsibility!
Offline
jordicg, please leave the dead to rest in peace: https://wiki.archlinux.org/index.php/Co … bumping.22
Closing.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1
Topic closed