diff options
Diffstat (limited to 'doc/book-enea-linux-user-guide/doc/using_enea_linux.xml')
-rw-r--r-- | doc/book-enea-linux-user-guide/doc/using_enea_linux.xml | 116 |
1 files changed, 64 insertions, 52 deletions
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><release>/<target>/deb</literal>/</literal>.</para> | 716 | <literal><literal><release>/<target>/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 ./" | \ |
743 | tee -a /etc/apt/sources.list.d/repos.list</programlisting> | 743 | tee -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/ | ||
756 | aarch64/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 |
777 | user.notice [RPM][351]: Transaction ID 5d836e00 started | ||
778 | user.notice [RPM][351]: install vim-common-8.1.1017-r0.0.aarch64: success | ||
779 | user.notice [RPM][351]: install vim-common-8.1.1017-r0.0.aarch64: success | ||
780 | user.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 |
792 | user.notice [RPM][346]: Transaction ID 5d836d54 started | ||
793 | user.notice [RPM][346]: erase vim-common-8.1.1017-r0.0.aarch64: success | ||
794 | user.notice [RPM][346]: install vim-common-8.1.1518-r0.0.aarch64: success | ||
795 | user.notice [RPM][346]: erase vim-common-8.1.1017-r0.0.aarch64: success | ||
796 | user.notice [RPM][346]: install vim-common-8.1.1518-r0.0.aarch64: success | ||
797 | user.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 |
784 | Reading package lists... Done | 808 | user.notice [RPM][350]: Transaction ID 5d836dc9 started |
785 | Building dependency tree | 809 | user.notice [RPM][350]: erase vim-common-8.1.1518-r0.0.aarch64: success |
786 | Reading state information... Done | 810 | user.notice [RPM][350]: erase vim-common-8.1.1518-r0.0.aarch64: success |
787 | The following packages were automatically installed and are no longer required: | 811 | user.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 | ||
790 | Use 'apt autoremove' to remove them. | ||
791 | The following packages will be REMOVED: | ||
792 | ptest-runner | ||
793 | 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. | ||
794 | After this operation, 0 B of additional disk space will be used. | ||
795 | Do you want to continue? [Y/n] y | ||
796 | (Reading database ... 5766 files and directories currently installed.) | ||
797 | Removing 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 |
809 | ptest-runner - A C program to run all installed ptests | 823 | vim-common-8.1.1017-r0.0.aarch64</programlisting> |
810 | ptest-runner-dbg - A C program to run all installed ptests - Debugging files | ||
811 | ptest-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> |