🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

OS fundamentals - 5 - software installation.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

OS FUNDAMENTALS Software installation 1 Phaedra Degreef SOFTWARE INSTALLATION IN LINUX • Before: − − − − Download .tar.Z files Uncompress Compile and make Cluttering of /usr/local directory • Now: − Application packages − Package manager tools 2 THE CLASSIC WAY….. 3 WHAT DOES IT DO? • ./...

OS FUNDAMENTALS Software installation 1 Phaedra Degreef SOFTWARE INSTALLATION IN LINUX • Before: − − − − Download .tar.Z files Uncompress Compile and make Cluttering of /usr/local directory • Now: − Application packages − Package manager tools 2 THE CLASSIC WAY….. 3 WHAT DOES IT DO? • ./configure or ./autogen.sh (more recently) − − − − Prepare your system for installation Verify if correct compiler is there Verify other dependencies Create the makefile (script) to build app • make − Build application via makeflie • make install − Copy compiled app and other stuff to the correct locations − Might require sudo (most probably) 4 MAKEFILE…. 5 SOFTWARE VERSIONING • Problems to solve in software engineering: − Working with multiple developers on the same source code − Keeping different versions, ability to retrieve older versions − Locking exclusively (and unlocking) • “check-out” and “check-in” of code − Branching and merging • Possible conflicts in merging 6 GIT • • • • • 7 Open-source versioning tool Used for Linux kernel Git tool needs to be installed “git clone” command to make a local copy “git commit” commits local changes APPLICATION PACKAGING • All-in-one installation/maintenance/uninstall • Can be reverted and reapplied • Can contain scripts − Which might make things irreversible! − Formats: • rpm • deb 8 RPM (RED HAT, SUSE, FEDORA) 9 DEB (DEBIAN) • dpkg –i apache2.deb • dpkg –r • dpkg -reconfigure 10 AUTOMATED PACKAGE INSTALL • Most common: apt or apt-get − Works with both types − Advanced Packaging Tool (Debian, Ubuntu) − Command-line 11 APT-GET MOST COMMON OPTIONS • apt-cache − Search through the cached package lists • • List packages Show dependencies • apt-get update − − − Maintain cache and sync packages on local machine only updates the package list with the latest available versions it does not install or upgrade the package • apt-get build-dep <package> − Resolves dependencies for <package> before installing that • apt-get install <package> • apt-get upgrade − actually upgrades and installs the latest versions of packages that are already installed • apt-get remove • apt-get purge 12 PACKAGE MANAGEMENT TOOLS • Suse Linux: Yast 13 UBUNTU: SYNAPTIC 14 SOFTWARE INSTALLATION IN WINDOWS 15

Use Quizgecko on...
Browser
Browser