90 likes | 159 Views
Explore software package creation, file extensions, source code packages, and compiler details on Linux systems. Understand RPM, TAR, GZ, BZ2, TZ, DEB formats and compiling with GCC and Fortran.
E N D
Software Management Linux Software Package File Extensions Extension File .rpm Software package created with the Red Hat Software Package Manager, used on Red Hat, Caldera, Mandrake, and SuSE distributions. .src.rpm Software packages that are source code versions of applications, created with the Red Hat Software Package Manager. gzip compressed file (use gunzip to decompress). .gz
Extension File .bz2 bzip2 compressed file (use bunzip2 to decompress, also use the j option with tar, as in xvjf). .tar A tar archive file, use tar with xvf to extract. gzip compressed tar archive file. Use gunzip to decompress and tar to extract. Use the z option with tar, as in xvzf to both decompress and extract in one step. .tar.gz .tar.bz2 bzip2 compressed tar archive file. Extract with tar -xvzf. .tz tar archive file compressed with the compress command. File compressed with the compress command (use the decompress command to decompress). .Z Debian Linux package. .deb
makes rpm print a progress bar RPM packages [alaei@node65 ~]$ rpm -Uvh emacs-21.2-18.i386.rpm verbose upgrade,whether the package is already installed or not [alaei@node65 ~]$ rpm -qa | grep vim vim-common-6.3.030-3 vim-X11-6.3.030-3 vim-minimal-6.3.030-3 vim-enhanced-6.3.030-3 [root@node65 ~]$ rpm -e totem
Compiling Software [alaei@node65 ~]$ ./configure [alaei@node65 ~]$ make [alaei@node65 ~]$ make install
Compilers in linux GNU project C and C++ compiler gcc g77 GNU project Fortran 77 compiler f77 gfortran GNU Fortran 95 compiler the Intel(R) Fortran Compiler ifort g95 http://www.g95.org/
library: a collection of generally useful pre-compiled procedures, stored in a file, and arranged so that a linker can extract the ones needed by any particular program. linker = link editor; a program which takes compiled program fragments and combines them into a complete program, ready for loading. object file: a file produced by compiling a program or module, containing compressed assembly language ready for linking and loading.
Practical details Source code, object code, compiling, and linking #f77 circle.f #./a.out #f77 circle.f -o circle.x #f77 circle1.f circle2.f #f77 -c circle1.f circle2.f #f77 circle1.o circle2.o
Using libraries under Unix the -l option to link it together with your main program #f77 main.f -lblas #f77 main.f mysub.f -llapack -lblas #f77 -c *.f #ar rcv libmy_lib.a *.o #ranlib libmy_lib.a #rm *.o #f77 main.f -L. -lmy_lib