About-RPMs.html 0100555 0003721 0000310 00000007664 07034147565 013270 0 ustar rjflory users
About RPM Files
A common problem facing all operating systems is how to keep the OS and all the installed software up-to-date. This problem becomes increasingly complicated when applications and files span several directories. A few years ago RedHat came up with a method of placing all files for a program, library, etc into a single compressed archive that also provides installation and removal information, a list external dependencies, target architecture, even recompilation information.
Anyone who has used ms-windows knows what happens when you install or remove an application program- your system stops working because shared programs and DLLs just got wiped out. RPM files greatly reduce problem by letting you know the names of other packages required when installing a new RPM, or programs that might be affected if you delete a RPM.
This section presents a very small subset of can be done with RPM files.
To find out which RPMs are currently installed on your system:
rpm -qa
To determine what files an RPM contains.
rpm -qlp <complete name of RPM file>
rpm -ql <basename of installed RPM>
To update an already installed package:
rpm -Uvh <complete name of RPM file>
To install a new package on your system:
rpm -i <complete name of RPM file>
To remove (erase) an installed RPM package:
rpm -e <basename of installed RPM>
Although many RPMs can be installed by normal users, installing and removing system packages requires you to be logged in as root.
The rpm program will output a warning message if you try to delete a RPM that is used by any other installed RPMs. Although it is possible to override this warning, you do so at your own risk.
Make sure you understand all the implications when removing and installing RPMs. For example, if you happen to remove glibc (by overriding the warning message) you will not be able to execute any shell commands, and your system will instantly become unusable ( yes, one of my friends actually did this, and he knew better! ).
Adding New Users
It is generally accepted as a bad habit to be logged in as the root user any more than is necessary for system setup and maintenance. Since the root user has the rights to do almost anything, its just too easy to make a mistake and wipe out user data or critical parts of your system.
As soon as possible you should add new user logins for your normal day-to-day use. This may be done with the adduser and passwd commands, which must be done while logged in as root.
As a simple example, I will create a new user named gomer, with a password of golly-98:
adduser gomer
passwd gomer
golly-98
golly-98
If you are part of a network that shares NFS mounts, you will want to use the long form useradd command instead. You will need to know the uid and gid assigned by your network administrator. The below example assumed uid=2001 and gid=100 for the user gomer:
useradd -u 2001 -g 100 -d /home/gomer -s /bin/bash -c "I'm a gomer" gomer
finger gomer Login: gomer Name: I'm a gomer Directory: /home/gomer Shell: /bin/bash Never logged in. No mail. No Plan.
ls -al /home/gomer/ total 7 drwx------ 2 gomer users 1024 Feb 21 17:30 . drwxr-xr-x 13 root root 1024 Feb 21 17:30 .. -rw-r--r-- 1 gomer users 1155 Feb 21 17:30 .Xdefaults -rw-r--r-- 1 gomer users 24 Feb 21 17:30 .bash_logout -rw-r--r-- 1 gomer users 230 Feb 21 17:30 .bash_profile -rw-r--r-- 1 gomer users 124 Feb 21 17:30 .bashrc
Lastly don't forget to change the directory attributes for this user:
chmod 0755 /home/gomer
Background
Although I am a professional C/C++ developer (on mostly intel systems), I enjoy using the Amiga and Linux- fewer snobs, better ideas, and more fun.... When one breaks away from the microsoft mentality, we find a world where people actually share their work, advancing the state-of-the-art; and
have fun while doing it !!Please consult the
m68k Linux Home Pages for a history of m68k Linux development.The RedHat and Debian m68k Linux distributions are the result of an incredible amount of dedicated work on the part of a few individuals. I cannot claim credit for any of this. My contribution has been to research, document, test, and share my findings with the rest of the Amiga community (mostly after the fact ).
To the best of my knowledge,
most of the RedHat m68k Linux work was done by
Ron at home in the computer room....
I currently use Linux (at home and at work) on several platforms: x86, m68k, alpha, and mips. No other operating system in the world can claim such wide portability and consistency on such different hardware.
Linux is starting to take hold in the business world. Our MIS department used to snort when Linux was mentioned; now they publicly deride NT and proprietary environments, comparing them to the incredible reliability of Linux-based services that are built-in, and "free"!. Most of the Linux machines originally installed as an "experiment" have taken on a significant portion of the day-to-day services on our network because they work, are easier to administer and interconnect, and don't crash several times a day like the NT stuff does. We have found that by simply placing a Linux machine (with several "strategic" services installed) in front of the NT servers, that network response-time has decreased and maximum throughput has doubled ( or more ). Many of the NT machines must be force-reset at least once a day to keep from locking-up, whereas some of our heavily-used Linux machines have been running continuously
for over nine months !!!!Last month ATT killed our T1-line for almost 4 days. Within 2 hours a friend and I were able to setup a spare system with Linux (from scratch) which provided dial-out modem services restoring email and critical FTP/HTTP services to over 600 people. It was slow, but still better than nothing.