software management

9
Software Management Linux Software Package File Extensions Extension File .rp m Software package created with the Red Hat Software Package Manager, used on Red Hat, Caldera, Mandrake, and SuSE distributions. Software packages that are source code versions of applications, created with the Red Hat Software Package Manager. .src. rpm gzip compressed file (use gunzip to decompress). . g z

Upload: gavivi

Post on 06-Jan-2016

29 views

Category:

Documents


0 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Software Management

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.

Software packages that are source code versions of applications, created with the Red Hat Software Package Manager.

.src.rpm

gzip compressed file (use gunzip to decompress)..gz

Page 2: Software Management

Extension File

bzip2 compressed file (use bunzip2 to decompress, also use the j option with tar, as in xvjf).

.bz2

A tar archive file, use tar with xvf to extract..tar

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

bzip2 compressed tar archive file. Extract with tar -xvzf..tar.bz2

tar archive file compressed with the compress command..tz

File compressed with the compress command (use the decompress command to decompress).

.Z

Debian Linux package..deb

Page 3: Software Management

RPM packages

[alaei@node65 ~]$ rpm -qa | grep vimvim-common-6.3.030-3vim-X11-6.3.030-3vim-minimal-6.3.030-3vim-enhanced-6.3.030-3

[alaei@node65 ~]$ rpm -Uvh emacs-21.2-18.i386.rpm

[root@node65 ~]$ rpm -e totem

upgrade,whether the package is already installed or not

verbose

makes rpm print a progress bar

Page 4: Software Management

Compiling Software

[alaei@node65 ~]$ ./configure

[alaei@node65 ~]$ make

[alaei@node65 ~]$ make install

Page 5: Software Management

Compilers in linux

gcc

g77 GNU project Fortran 77 compiler

gfortran GNU Fortran 95 compiler

the Intel(R) Fortran Compilerifort

GNU project C and C++ compiler

g95

f77

http://www.g95.org/

Page 6: Software Management
Page 7: Software Management

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.

Page 8: Software Management

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

Page 9: Software Management

Using libraries under Unix

#f77 main.f -lblasthe -l option to link it together with your main program

#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