LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-15-2020, 03:06 PM   #1
nkamp
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 0
If I try to update Fedora I have to less space, how can I free some space? Were are application installed?


Hello,

As other thread mentioned I'm not so familiar with Linux but I try to get further.

Here is my partition config:
  • boot ext4 500 MiB
  • home ext4 15 GiB (was 50 GiB)
  • root ext4 10,80 GiB (Why 0,80 extra?)
  • var ext4 38,20 GiB (was 4 GiB)
  • Swap ext4 8 GiB (equal to memory)

A few things what I try to find out:

Question 1:
I try to upgrade fedora 31 to 32 with "sudo dnf upgrade", but than I got the message:
Quote:
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
installing package MariaDB-backup-debuginfo-10.4.15-1.fc31.x86_64 needs 151MB on the / filesystem

Error Summary
-------------
Disk Requirements:
At least 151MB more space needed on the / filesystem.
My questions are:
This is downloaded in cache, at which cache? (If I run 'dnf clean packages', 610 files are removed.)
How can I solve this?

--

Question 2:
I have installed netbeans-11.2 first and later version 12. But now both are installed. So I want to remove version 11.2.
I have find out that these is installed in /u01/app/netbeans11-2.
If I try to unstall this with the uninstall script with: ./uninstall.sh, Than I get this error message:
Quote:
Configuring the installer...
Searching for JVM on the system...
Java SE Development Kit (JDK) was not found on this computer
JDK 8 is required for installing the NetBeans IDE. Make sure that the JDK is properly installed and run installer again.
You can specify valid JDK location using --javahome installer argument.
I try to find were the JDK is installed or the value of JAVA_HOME. But with echo $JAVA_HOME nothing is returned.
In /usr/lib/jvm I found:
rwxrwxrwx. 1 root root 26 Apr 22 17:44 java -> /etc/alternatives/java_sdk
lrwxrwxrwx. 1 root root 29 Apr 22 17:43 java-14 -> /etc/alternatives/java_sdk_14
lrwxrwxrwx. 1 root root 37 Apr 22 17:43 java-14-openjdk -> /etc/alternatives/java_sdk_14_openjdk
drwxr-xr-x. 7 root root 4096 Apr 22 17:43 java-14-openjdk-14.0.0.36-3.rolling.fc31.x86_64
lrwxrwxrwx. 1 root root 34 Apr 22 17:44 java-openjdk -> /etc/alternatives/java_sdk_openjdk
lrwxrwxrwx. 1 root root 21 Apr 22 17:44 jre -> /etc/alternatives/jre
lrwxrwxrwx. 1 root root 24 Apr 22 17:40 jre-14 -> /etc/alternatives/jre_14
lrwxrwxrwx. 1 root root 32 Apr 22 17:40 jre-14-openjdk -> /etc/alternatives/jre_14_openjdk
lrwxrwxrwx. 1 root root 47 Apr 9 2020 jre-14-openjdk-14.0.0.36-3.rolling.fc31.x86_64 -> java-14-openjdk-14.0.0.36-3.rolling.fc31.x86_64
lrwxrwxrwx. 1 root root 29 Apr 22 17:44 jre-openjdk -> /etc/alternatives/jre_openjdk

How can I find were the right Java is installed?

--

Question 3:
I like to work with:
  • Netbeans
  • Eclipse
  • Apache
  • PHP
  • MySQL/MariadB
  • Joomla
  • etc...

But what is the 'best' location to install these applications? I mean in windows you have Programm Files or Programm Files(86) or you can define you're own directory at the beginning of the installation process. With windows I have more the feeling that I can more steer the installation. Here with dnf it is installed somewere but I don't know if it is done in the home directory or /usr or /var. So I try to find out some structure.

And if I go through my home directory than I find there also something of Netbeans and other things and I'm asking myself did I or is here the application installed? Can I remove it? Or is it installed at /u01/app or /usr/... or /var/...

So I try to find way in Linux were are 'things' installed? And how can find out were these applications are installed? I have tried the find command but than I get a lot of hits sometimes.

I hope that someone can give me some advise in these.

Nico
 
Old 10-15-2020, 03:30 PM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
The executable binaries are usually installed in /usr/bin, but sometimes in other places. They go where the installation puts them. Configuration files can be in several places, often in /home/user/.config. In general, you don't need to worry about where they are installed. Linux is not Windows, and programs are not installed in the same way.

Java Development Kit is not the same as java. You need to install that separately.

You may be able to increase the size of / by decreasing the size of another partition. /var would be a likely candidate, because 38+GB is far larger than necessary. Home could also use more room, probably. But it depends on the order of the partitions on the disk, and you didn't give those. In any case, you need to boot from an external drive in order to resize the partitions.
 
Old 10-16-2020, 09:27 AM   #3
nkamp
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Original Poster
Rep: Reputation: 0
Thanks for you're answer.

I do not understand what you mean by "Java Development Kit is not the same as java. You need to install that separately."
I mean there is JDK. And you have JRE (Java Runtime Environment).
So I think JAVA should be there otherwise I couldn't install Netbeans-11.2. And I'm using the default netbeans-11.2 uninstall.sh shell script, I do not understand why it doesn't work.
Now I have installed Netbeans-12.0 already, could that have someting overwritten?

--
I have upgrade the fedora version and the software as well. I have deleted the old kernel first. I had a kernel active and the one before as backup. But maybe it is better to remove the 'old' one after an update?

It is a multiboot system with Win7, Win10 and Fedora Linux.
I have here my disk partition overview:
df -h:

Filesystem______Size__Used_Avail_Use%_Mounted on
devtmpfs________3.9G_____0__3.9G___0%_/dev
tmpfs___________3.9G__108M__3.8G___3%_/dev/shm
tmpfs___________3.9G__2.1M__3.9G___1%_/run
tmpfs___________3.9G_____0__3.9G___0%_/sys/fs/cgroup
/dev/sda8________11G__8.8G__1.3G__88%_/
tmpfs___________3.9G___52K__3.9G___1%_/tmp
/dev/sda6_______477M__213M__235M__48%_/boot
/dev/sda9________38G___11G___26G__29%_/var
/dev/sda7________15G__3.5G___11G__25%_/home
/dev/loop0_______97M___97M_____0_100%_/var/lib/snapd/snap/core/9665
/dev/loop1______442M__442M_____0_100%_/var/lib/snapd/snap/netbeans/30
tmpfs___________795M___24K__795M___1%_/run/user/42
tmpfs___________795M__108K__795M___1%_/run/user/1000

BTW, a few months ago I have resized the partitions with GParted, without booting from an external drive. But what is a good size for var? and also / and home?

Last edited by nkamp; 10-16-2020 at 09:39 AM.
 
Old 10-16-2020, 09:51 AM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I think 5GB is more than sufficient for /var in most cases, but for some reason yours is using 11GB. You might be able to trim that be removing old logs and cruft. For / perhaps 20GB, but 15GB is usually sufficient. For /home, since that's where you store all you data, as much as possible. Everyone has different requirements, though. It appears that you now have enough room on / for installing packages, but I can't say how long that will last.

I didn't know that you have Windows installed, so I suppose you can resize the partitions from there. Resizing mounted partitions is not a good idea, and you can't unmount / while it's in use.
 
Old 10-17-2020, 02:03 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
'dnf clean all' before trying to upgrade might free up enough space. The upgrade cache is a separate location, /var/lib/dnf/system-upgrade/, rather than /var/cache/dnf/. As with normal upgrades, a dnf system-upgrade downloads all packages in advance.

Another way to buy some space temporarily is to prevent certain larger packages from upgrading during the system-upgrade. An example (such as I typically use as a custom) would be in /etc/dns/dnf.conf to add a line:
Code:
exclude= kernel* linux-firm*
Other biggies you could probably exclude would be java* and libreoffic*. After the initial upgrade is complete, remove the exclude= line(s) and run 'dnf upgrade' to complete the upgrade from F31 to F32.
 
Old 10-18-2020, 05:43 PM   #6
crajor
Member
 
Registered: Mar 2019
Location: Akron, Ohio
Distribution: PCLinuxOS 2020
Posts: 88
Blog Entries: 4

Rep: Reputation: Disabled
Replying to your 1st question, good chance that the error is pointing to /var/cache. Also, based upon seeing a 38GB partition as /var, Sounds to me as if there is a LOT of data on the /var partition, especially if as you say, original partition size was 4GB.
 
Old 10-20-2020, 08:41 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Since I use fedora I can provide a little guidance in needs.
The commonly needed partitions with todays linux, especially fedora, is as follows:
/ I use 150G since there are no other main system partitions in use. My laptop uses about 12% of that so it could easily be 50G or less.
/boot 500M to 1G
/boot/efi 250M The windows efi partition on my laptop was originally 250M and that is what I use.
/home enough to meet your needs.

Note that I have no need for /var as a separate partition. Looking at your df output I see that / and /var are sda8 and sda9 respectfully. If you backed up the content of those 2 partitions, then combined them into a single ~50G partition you could restore the data and have about 30G of free space to work with. Your existing /boot and /home should be fine as they are.

I would recommend that you handle your 2 issues separately. First fix the space issue because that will cause continuing problems until fixed. Once the space is handled and the system is running stable then deal with upgrades/updates and they should complete normally.
Finally, and as a separate issue deal with the JRE and JDK problems.

I strongly recommend that as much as possible you only install packages from the official fedora repositories because 3rd party repos can cause problems when updating the system.
 
  


Reply



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
How to make emails have the date they were written instead of the date that they were actually sent? dedec0 Linux - General 10 08-26-2018 01:09 AM
i have installed linux but dont know were 2 start 4m n have a gud hold on linux jovel_allalone Linux - Newbie 4 05-19-2009 10:14 AM
got a Fedora 9 indication that yum updates were available, but there were no updates landonmkelsey Linux - Software 12 02-08-2009 09:53 AM
In search of a distro for older PC (w/ less RAM & less HD space) fc6_user Linux - Distributions 5 04-10-2007 09:24 PM
Oh were oh were has my sound card gone? mst700 Linux - Newbie 3 07-13-2004 02:49 AM

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

All times are GMT -5. The time now is 06:36 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