Editing LTO Tape/6

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 69: Line 69:
In RHEL/CentOS 8, install the dependencies:
In RHEL/CentOS 8, install the dependencies:


{{bc|sudo dnf install rpm-build rpmdevtools}}
sudo dnf install rpm-build rpmdevtools


First, create the rpmbuild setuptree in your home directory.
First, create the rpmbuild setuptree in your home directory.


{{bc|rpmdev-setuptree}}
rpmdev-setuptree


Download [https://github.com/piste2750/rpm-ltfs/blob/master/ltfs.spec this .spec file, and place it into ~/rpmbuild/SPECS/ltfs.spec]. Then run the following src.rpm packaging command.
Download [https://github.com/piste2750/rpm-ltfs/blob/master/ltfs.spec this .spec file, and place it into ~/rpmbuild/SPECS/ltfs.spec]. Then run the following src.rpm packaging command.


{{bc|rpmbuild -bb ~/rpmbuild/SPECS/ltfs.spec}}
rpmbuild -bb ~/rpmbuild/SPECS/ltfs.spec


Install the dependencies needed to build the source rpm.
Install the dependencies needed to build the source rpm.


{{bc|sudo dnf builddep ~/rpmbuild/SRPMS/ltfs-2.4.1.2-10254.src.rpm}}
sudo dnf builddep ~/rpmbuild/SRPMS/ltfs-2.4.1.2-10254.src.rpm


Build an rpm from a .src.rpm file:
Build an rpm from a .src.rpm file:


{{bc|rpmbuild --rebuild ~/rpmbuild/SRPMS/ltfs-2.4.1.2-10254.src.rpm}}
rpmbuild --rebuild ~/rpmbuild/SRPMS/ltfs-2.4.1.2-10254.src.rpm


Now the rpms can be installed
Now the rpms can be installed


{{bc|
cd ~/rpmbuild/RPMS/x86_64
cd ~/rpmbuild/RPMS/x86_64
sudo dnf localinstall ltfs-2.4.1.2-10254.x86_64.rpm  ltfs-debuginfo-2.4.1.2-10254.x86_64.rpm  ltfs-debugsource-2.4.1.2-10254.x86_64.rpm
sudo dnf localinstall ltfs-2.4.1.2-10254.x86_64.rpm  ltfs-debuginfo-2.4.1.2-10254.x86_64.rpm  ltfs-debugsource-2.4.1.2-10254.x86_64.rpm
}}


Now the LTO Drive can be used. Skip all the build and install instructions in this post and use that:
Now the LTO Drive can be used. Skip all the build and install instructions in this post and use that:
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: