.pm Position auf Fedora 26?

357
Jezza

Ich habe eine .rpm-Datei in mein ~ / Downloads-Verzeichnis heruntergeladen und sie durch Doppelklick erfolgreich installiert: Die Software wurde geöffnet und ich konnte auf "Installieren" klicken. Einfach und sehr bequem, aber ich würde gerne mehr über das System und den Speicherort der Dateien erfahren.

Meine Frage ist: Kann ich die Datei ~ / downloads / file.rpm jetzt sicher löschen oder sollte ich sie an einen anderen Speicherort auf meinem System verschieben? Oder soll ich es für immer in seinem aktuellen Verzeichnis belassen ...?

Wenn es nützliche Informationen gibt: Ich habe kein / var / cache / yum / auf meinem System und nichts mit file.rpm in / var / cache / dnf /. Auch keine /etc/yum.conf, /ect/dnf.conf oder irgendetwas, das mit file.rpm in /etc/yum.repos.d/ zusammenhängt.

Vielen Dank für Ihre Kommentare!

1

1 Antwort auf die Frage

1
mattdm

Once the package is installed, the various files will go into their appropriate locations on the filesystem according to Fedora's guidelines for filesystem layout. Once you've installed a downloaded package, you can remove the RPM file.

You can see where a package is going to put stuff before installing it from the command line. Let's assume your downloaded package is foo-1.0-1.x86_64.rpm, and it's in ~/Downloads. You can see what's in it by running:

$ rpm -qlp ~/Downloads/foo-1.0-1.x86_64.rpm 

Where qlp is "query: list files from a packagefile". Look at man rpm for many other query options.

You can also use the less pager to see details about a package (it runs an RPM query command in the background), like this:

$ less ~/Downloads/foo-1.0-1.x86_64.rpm 

First, you'll see some overview information, then a description, then a (possibly very long) changelog, and finally at the bottom, the file list. (Hit q when you are done with less.)