summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIoana Valentina Nicolaescu <Ioana.Valentina.Nicolaescu@enea.com>2019-10-09 13:13:07 +0200
committerAdrian Stratulat <Adrian.Stratulat@enea.com>2019-10-21 13:22:02 +0200
commit3132d1505c90545de7b1fed16b4dd7ccd7091fd2 (patch)
treef795ee9d61eb11d1443dfa505bf0040a83b7a72a
parent19059eca3729e50bb63fc4e49dd9dada70cd9d86 (diff)
downloadel_releases-standard-3132d1505c90545de7b1fed16b4dd7ccd7091fd2.tar.gz
Update package management section from deb to rpm
Change-Id: Icfc821b3efd036baedd0975f5ef227c4596200e7 Signed-off-by: Ioana Valentina Nicolaescu <Ioana.Valentina.Nicolaescu@enea.com>
-rw-r--r--doc/book-enea-linux-user-guide/doc/application_development.xml10
-rw-r--r--doc/book-enea-linux-user-guide/doc/getting_enea_linux.xml4
-rw-r--r--doc/book-enea-linux-user-guide/doc/using_enea_linux.xml116
3 files changed, 71 insertions, 59 deletions
diff --git a/doc/book-enea-linux-user-guide/doc/application_development.xml b/doc/book-enea-linux-user-guide/doc/application_development.xml
index 0e2edf4..a94c422 100644
--- a/doc/book-enea-linux-user-guide/doc/application_development.xml
+++ b/doc/book-enea-linux-user-guide/doc/application_development.xml
@@ -156,7 +156,7 @@ MODULE_LICENSE("GPL");</programlisting>
156 <para>This example will show how to generate a recipe from the existing 156 <para>This example will show how to generate a recipe from the existing
157 application code and Makefile, edit the recipe in order to provide an 157 application code and Makefile, edit the recipe in order to provide an
158 installation path for the application, build the recipe, and deploy the 158 installation path for the application, build the recipe, and deploy the
159 output on a target, or create a DEB package from the recipe and install 159 output on a target, or create a RPM package from the recipe and install
160 the package.</para> 160 the package.</para>
161 161
162 <orderedlist> 162 <orderedlist>
@@ -266,16 +266,16 @@ Parsing recipes..done.
266NOTE: Successfully deployed 266NOTE: Successfully deployed
267&lt;SDK_dir&gt;/tmp/work/&lt;arch&gt;-enea-linux/my-hello-recipe/1.0-r0/image</programlisting> 267&lt;SDK_dir&gt;/tmp/work/&lt;arch&gt;-enea-linux/my-hello-recipe/1.0-r0/image</programlisting>
268 268
269 <para>As an alternative you can create a DEB package:</para> 269 <para>As an alternative you can create a RPM package:</para>
270 270
271 <programlisting>$ devtool package my-hello-recipe 271 <programlisting>$ devtool package my-hello-recipe
272... 272...
273NOTE: Your packages are in &lt;SDK_dir&gt;/tmp/deploy/deb</programlisting> 273NOTE: Your packages are in &lt;SDK_dir&gt;/tmp/deploy/deb</programlisting>
274 274
275 <para>Then copy the DEB package on the target and install it using 275 <para>Then copy the RPM package on the target and install it using
276 dpkg:</para> 276 rpm:</para>
277 277
278 <programlisting># dpkg -i my-hello-recipe-1.0-r0.1.&lt;arch&gt;.deb</programlisting> 278 <programlisting># rpm -i my-hello-recipe-1.0-r0.1.&lt;arch&gt;.rpm</programlisting>
279 </listitem> 279 </listitem>
280 </orderedlist> 280 </orderedlist>
281 </section> 281 </section>
diff --git a/doc/book-enea-linux-user-guide/doc/getting_enea_linux.xml b/doc/book-enea-linux-user-guide/doc/getting_enea_linux.xml
index 21d0cb9..b747b2e 100644
--- a/doc/book-enea-linux-user-guide/doc/getting_enea_linux.xml
+++ b/doc/book-enea-linux-user-guide/doc/getting_enea_linux.xml
@@ -39,8 +39,8 @@
39 </listitem> 39 </listitem>
40 40
41 <listitem> 41 <listitem>
42 <para><emphasis>deb</emphasis> directory - this directory contains all 42 <para><emphasis>rpm</emphasis> directory - this directory contains all
43 the packages included in the distribution in deb format, which can be 43 the packages included in the distribution in rpm format, which can be
44 installed using the package manager.</para> 44 installed using the package manager.</para>
45 </listitem> 45 </listitem>
46 </itemizedlist> 46 </itemizedlist>
diff --git a/doc/book-enea-linux-user-guide/doc/using_enea_linux.xml b/doc/book-enea-linux-user-guide/doc/using_enea_linux.xml
index a68f7da..a6a0ed6 100644
--- a/doc/book-enea-linux-user-guide/doc/using_enea_linux.xml
+++ b/doc/book-enea-linux-user-guide/doc/using_enea_linux.xml
@@ -702,31 +702,31 @@ $ devtool runqemu kvm enea-image-standard nographic slirp </programlisting>
702 image in a consistent way, e.g. to install, upgrade, or delete packages 702 image in a consistent way, e.g. to install, upgrade, or delete packages
703 considering the dependencies. The package management systems supported by 703 considering the dependencies. The package management systems supported by
704 Enea Linux are described in this section. More information about PMS can 704 Enea Linux are described in this section. More information about PMS can
705 be found in the Yocto 2.5 document <ulink 705 be found in the Yocto 2.7 document <ulink
706 url="http://www.yoctoproject.org/docs/2.5/mega-manual/mega-manual.html">Yocto 706 url="http://www.yoctoproject.org/docs/2.7/mega-manual/mega-manual.html">Yocto
707 Project Mega Manual</ulink>. If needed replace the Yocto version in the 707 Project Mega Manual</ulink>. If needed replace the Yocto version in the
708 link.</para> 708 link.</para>
709 709
710 <section id="apt_pktmgmt"> 710 <section id="rpm_pktmgmt">
711 <title>APT Package Management (DEB Packages)</title> 711 <title>RPM Package Management (RPM Packages)</title>
712 712
713 <para>Enea Linux provides DEB packages on <ulink 713<!-- <para>Enea Linux provides RPM packages on <ulink
714 url="http://linux.enea.com/EneaLinux8.0/">linux.enea.com</ulink> site, 714 url="http://linux.enea.com/EneaLinux8.0/">linux.enea.com</ulink> site,
715 in directory 715 in directory
716 <literal><literal>&lt;release&gt;/&lt;target&gt;/deb</literal>/</literal>.</para> 716 <literal><literal>&lt;release&gt;/&lt;target&gt;/rpm</literal>/</literal>.</para>
717-->
718 <para>The application for performing runtime package management of RPM
719 packages on the target is called <filename>rpm</filename>.</para>
717 720
718 <para>The application for performing runtime package management of DEB 721 <para>Use the <literal>rpm</literal> command to install, upgrade, or
719 packages on the target is called <filename>apt-get</filename>.</para> 722 remove packages. Before using any rpm options that require network
720
721 <para>Use the <literal>apt-get</literal> command to install, upgrade, or
722 remove packages. Before using any apt-get options that require network
723 access, please check that the network is configured and working 723 access, please check that the network is configured and working
724 properly.</para> 724 properly.</para>
725 725
726 <para>The <literal>apt-get</literal> command is by default included in 726 <para>The <literal>rpm</literal> command is by default included in
727 Enea Linux images.</para> 727 Enea Linux images.</para>
728 728
729 <section id="apt_config"> 729 <!--<section id="apt_config">
730 <title>Configuring</title> 730 <title>Configuring</title>
731 731
732 <para>APT relies on the concept of repositories in order to find 732 <para>APT relies on the concept of repositories in order to find
@@ -742,73 +742,85 @@ $ devtool runqemu kvm enea-image-standard nographic slirp </programlisting>
742# echo "deb [trusted=yes] http://server-address/path/to/the/package/directory ./" | \ 742# echo "deb [trusted=yes] http://server-address/path/to/the/package/directory ./" | \
743tee -a /etc/apt/sources.list.d/repos.list</programlisting> 743tee -a /etc/apt/sources.list.d/repos.list</programlisting>
744 744
745 <para>Run <literal>apt-get update</literal> to fetch information from 745 <para>Run <literal>createrepo --><!--update path_to_repo</literal> to fetch information from
746 the new repository:</para> 746 the new repository:</para>
747 747
748 <programlisting># apt-get update</programlisting> 748 <programlisting># createrepo --><!--update repo</programlisting>
749 </section>-->
750
751 <section id="rpm_preparation">
752 <title>Preparation</title>
753
754 <para>RPM packages need to first be downloaded on target.
755 <programlisting># wget https://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/
756aarch64/os/Packages/v/vim-common-8.1.2120-1.fc32.aarch64.rpm</programlisting>
757 They can be copied either from public maintained repositories or from locally maintained collections of useful RPMs.
758 <programlisting># wget http://linux.enea.com/RPM/aarch64/vim-common-7.4.481-r0.0.aarch64.rpm</programlisting>
759 </para>
760
761 <para>
762 RPM is also identifying and checking for package dependencies. It warns if the package can not be installed correctly and lists what needs to be done.
763 </para>
764
749 </section> 765 </section>
750 766
751 <section id="apt_install"> 767 <section id="rpm_install">
752 <title>Installing</title> 768 <title>Installing</title>
753 769
754 <para>DEB packages typically have file names like 770 <para>RPM packages typically have file names like
755 foo-1.0.1-r0.0_arm64.deb The file name includes the package name 771 foo-1.0.1-r0.0_arm64.rpm The file name includes the package name
756 (foo), version (1.0.1), revison (r0.0), and architecture (arm64). To 772 (foo), version (1.0.1), revison (r0.0), and architecture (arm64). To
757 install a package, log in as root and type the following command at a 773 install a package, log in as root and type the following command at a
758 shell prompt:</para> 774 shell prompt:</para>
759 775
760 <programlisting># apt-get install foo</programlisting> 776 <programlisting># rpm -i vim-common-8.1.1017-r0.0.aarch64.rpm
777user.notice [RPM][351]: Transaction ID 5d836e00 started
778user.notice [RPM][351]: install vim-common-8.1.1017-r0.0.aarch64: success
779user.notice [RPM][351]: install vim-common-8.1.1017-r0.0.aarch64: success
780user.notice [RPM][351]: Transaction ID 5d836e00 finished: 0</programlisting>
761 781
762 <para>The <literal>apt-get install</literal> command will install one
763 or more packages in the system.</para>
764 </section> 782 </section>
765 783
766 <section id="apt_upgrade"> 784 <section id="rpm_upgrade">
767 <title>Upgrading</title> 785 <title>Upgrading</title>
768 786
769 <para>The <literal>apt-get upgrade</literal> command will upgrade one 787 <para>The <literal>rpm -U</literal> command will upgrade one
770 or more packages which are currently installed in the system. If no 788 or more packages which are currently installed in the system.
771 packages are given, all installed packages will be checked.</para> 789 </para>
772 790
773 <programlisting># apt-get upgrade foo</programlisting> 791 <programlisting># rpm -U vim-common-8.1.1518-r0.0.aarch64.rpm
792user.notice [RPM][346]: Transaction ID 5d836d54 started
793user.notice [RPM][346]: erase vim-common-8.1.1017-r0.0.aarch64: success
794user.notice [RPM][346]: install vim-common-8.1.1518-r0.0.aarch64: success
795user.notice [RPM][346]: erase vim-common-8.1.1017-r0.0.aarch64: success
796user.notice [RPM][346]: install vim-common-8.1.1518-r0.0.aarch64: success
797user.notice [RPM][346]: Transaction ID 5d836d54 finished: 0</programlisting>
774 </section> 798 </section>
775 799
776 <section id="apt_rm"> 800 <section id="rpm_rm">
777 <title>Removing</title> 801 <title>Removing</title>
778 802
779 <para>The <literal>apt-get remove</literal> command will remove one or 803 <para>The <literal>rpm -e</literal> command will remove the
780 more packages which are currently installed in the system. 804 package which is currently installed in the system.
781 Example:</para> 805 Example:</para>
782 806
783 <programlisting># apt-get remove ptest-runner 807 <programlisting># rpm -e vim-common
784Reading package lists... Done 808user.notice [RPM][350]: Transaction ID 5d836dc9 started
785Building dependency tree 809user.notice [RPM][350]: erase vim-common-8.1.1518-r0.0.aarch64: success
786Reading state information... Done 810user.notice [RPM][350]: erase vim-common-8.1.1518-r0.0.aarch64: success
787The following packages were automatically installed and are no longer required: 811user.notice [RPM][350]: Transaction ID 5d836dc9 finished: 0
788 libc6-dbg libc6-dev libc6-extra-nss libc6-thread-db libcidn1
789 linux-libc-headers-dev
790Use 'apt autoremove' to remove them.
791The following packages will be REMOVED:
792 ptest-runner
7930 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
794After this operation, 0 B of additional disk space will be used.
795Do you want to continue? [Y/n] y
796(Reading database ... 5766 files and directories currently installed.)
797Removing ptest-runner (2.0.2+git0+6d2872116c-r0.0) ...
798</programlisting> 812</programlisting>
799 </section> 813 </section>
800 814
801 <section id="pm_searching"> 815 <section id="rpm_searching">
802 <title>Searching</title> 816 <title>Searching</title>
803 817
804 <para>The <literal>apt-cache search</literal> allows searching for the 818 <para>The <literal>rpm -q</literal> allows searching for the
805 given expressions in the name, summary and description of known 819 given expressions in the name, summary and description of known
806 packages. Example:</para> 820 packages. Example:</para>
807 821
808 <programlisting># apt-cache search ptest-runner 822 <programlisting># rpm -q vim-common
809ptest-runner - A C program to run all installed ptests 823vim-common-8.1.1017-r0.0.aarch64</programlisting>
810ptest-runner-dbg - A C program to run all installed ptests - Debugging files
811ptest-runner-dev - A C program to run all installed ptests - Development files</programlisting>
812 </section> 824 </section>
813 </section> 825 </section>
814 </section> 826 </section>