In general, you can use the alternitaves to figure out what RPM provides java utilities on a functioning system. Like this.
$ ls -la `which javac`
lrwxrwxrwx. 1 root root 23 May 1 15:59 /usr/bin/javac -> /etc/alternatives/javac
$ ls -la /etc/alternatives/javac
lrwxrwxrwx. 1 root root 69 May 1 15:59 /etc/alternatives/javac -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64/bin/javac
$ rpmquery -f /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64/bin/javac
java-1.8.0-openjdk-devel-1.8.0.171-4.b10.fc28.x86_64
$ ls -la `which javac`
lrwxrwxrwx. 1 root root 23 May 1 15:59 /usr/bin/javac -> /etc/alternatives/javac
$ ls -la /etc/alternatives/javac
lrwxrwxrwx. 1 root root 69 May 1 15:59 /etc/alternatives/javac -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64/bin/javac
$ rpmquery -f /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64/bin/javac
java-1.8.0-openjdk-devel-1.8.0.171-4.b10.fc28.x86_64
On Wed, May 2, 2018 at 10:04 AM, Kushal <kushaldeveloper@xxxxxxxxx> wrote:
Thank you much. It worked perfectly.
```text
[kus@localhost ~]$ sudo dnf info java-devel
[sudo] password for kus:
Last metadata expiration check: 1:04:33 ago on Wed 02 May 2018 08:57:08 AM EDT.
Error: No matching Packages to list
[kus@localhost ~]$ sudo dnf install java-devel
Last metadata expiration check: 1:04:44 ago on Wed 02 May 2018 08:57:08 AM EDT.
Dependencies resolved.
============================================================ ============================== ============================== ============================== ===================
Package Arch
Version Repository
Size
============================================================ ============================== ============================== ============================== ===================
Installing:
java-1.8.0-openjdk-devel x86_64
1:1.8.0.171-4.b10.fc28 updates
9.8 M
Installing dependencies:
java-1.8.0-openjdk x86_64
1:1.8.0.171-4.b10.fc28 updates
245 k
Transaction Summary
============================================================ ============================== ============================== ============================== ===================
Install 2 Packages
Total download size: 10 M
Installed size: 41 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64.rpm
1.4
MB/s | 245 kB 00:00
(2/2): java-1.8.0-openjdk-devel-1.8.0.171-4.b10.fc28.x86_64.rpm
1.6
MB/s | 9.8 MB 00:06
------------------------------------------------------------ ------------------------------ ------------------------------ ------------------------------ -------------------
Total
1.5
MB/s | 10 MB 00:06
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
1/1
Installing : java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
1/2
Running scriptlet: java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
1/2
Installing :
java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
2/2
Running scriptlet:
java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
2/2
Running scriptlet: java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
2/2
Running scriptlet:
java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
2/2
Verifying :
java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
1/2
Verifying : java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
2/2
Installed:
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.171-4.b10.fc28
java-1.8.0-openjdk.x86_64 1:1.8.0.171-4.b10.fc28
Complete!
[kus@localhost ~]$ javac -version
javac 1.8.0_171
[kus@localhost ~]$
```
sincerely,
_______________________________________________
java-devel mailing list -- java-devel@lists.fedoraproject.org
To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org
_______________________________________________ java-devel mailing list -- java-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to java-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx