Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
One more point. Why not backup any important files from your RHEL (Red Hat Enterprise Linux) 4 installation and do a clean install with a modern version of Linux. During installation you will get a chance to alter the partitioning on your disk anyway.
Running RHEL4 these days is a bad idea. It does not receive security updates any longer so it is not safe unless you have a special, "extra" extended life support contract with Red Hat or you understand how to upgrade and maintain the old software yourself, which (no offence intended) is unlikely as it is a highly skilled job and you appear to be a new user.
As an added bonus you will have access to a wider selection of modern applications, which will be easier to install due to advances in package management over the last 8+ years. The system will also be easier to configure and work better with modern hardware, due to similar improvements elsewhere in the OS.
Trying to use RHEL4 if you are new to Linux is just going to make everything harder for you as I suspect you are beginning to realise.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 17
Quote:
1. How to check gcc compiler is installed or not in Linux ?
1) $ which gcc
1a) $ gcc -v
2) $ g++ -v : Because no g++ probably means that gcc isn't working.
I.e. the important packages 'glibc-devel' etc. are installed as dependencies
for the package that provides g++ : 'gcc-c++'.
Quote:
4. How to create Partion in GUI mode, can u plz share
documents which have step by step instructions.
Already answered by ruario : Use the Gparted live cd.
1. How to check gcc compiler is installed or not in Linux ?
This would call the program and ask it to prints its version. If it exists it will report back:
Code:
gcc --version
Alternatively you could ask the rpm package manager
Code:
rpm -q gcc
Quote:
Originally Posted by ift38375
2. Plz give me examples of configurations files, Executable file.
.rpm, .tar.?? comes under in category of files ?
I'll use a program as an example, e.g. 'wget' which knudfl used in one of his examples to fetch rpms from the web. Let's ask the package manager about what this package is, '-qi' will give you information on a package:
Code:
$ rpm -qi wget
Name : wget
Version : 1.13.4
Release : 10.1.2
Architecture: x86_64
Install Date: Fri 24 Aug 2012 21:46:55 CEST
Group : Productivity/Networking/Web/Utilities
Size : 1876971
License : GPL-3.0+
Signature : RSA/SHA256, Mon 16 Jul 2012 19:31:51 CEST, Key ID b88b2fd43dbdc284
Source RPM : wget-1.13.4-10.1.2.src.rpm
Build Date : Mon 16 Jul 2012 19:31:20 CEST
Build Host : build35
Relocations : (not relocatable)
Packager : http://bugs.opensuse.org
Vendor : openSUSE
URL : http://www.gnu.org/software/wget/
Summary : A Tool for Mirroring FTP and HTTP Servers
Description :
Wget enables you to retrieve WWW documents or FTP files from a server.
This can be done in script files or via the command line.
Distribution: openSUSE 12.2
Now let's see what files are part of that package, '-ql' will give you a list of the files in the package:
The file /etc/wgetrc is the main system wide configuration file for wget. The file /usr/bin/wget is the main executable that runs when you type 'wget' on the command line. The directory /usr/share/doc/packages/wget contains various documents with information about wget, e.g. who made it (AUTHORS) and its license (COPYING). The files /usr/share/info/wget.info.gz and /usr/share/man/man1/wget.1.gz are the main manuals explaining how the program works, e.g. if I type 'man wget' I see the information stored in /usr/share/man/man1/wget.1.gz or 'info wget' would show me information from /usr/share/info/wget.info.gz ('man' and 'info' files are just two rival formats for displaying information manuals. In most cases they will show roughly the same data). The files in /usr/share/locale/ are translations to the wget interface and messages with the subfolders representing different languages, e.g. pl would Polish.
If you really want to understand the Linux directory structure and the rules for where different files that make up packages are stored check out the Filesystem Hierarchy Standard. It is long and detailed but it explains all of this and more.
Quote:
Originally Posted by ift38375
3. I want to transfer file from source to destination, then
which command i will use, SCP or UUCP??
It depends on what is running at the destination. Assuming an SSH server, scp would be an appropriate command but there are multiple ways to transfer stuff between machines, just like there are on other operating systems.
Quote:
Originally Posted by ift38375
4. How to create Partion in GUI mode, can u plz share
documents which have step by step instructions.
2) .rpm and .tar.?? are configuration file or Executable file ?
rpms are neither. Strictly speaking it is an archive format (collection of files) with meta data used by the rpm package manager to understand what the package is, what it depends on and what its contents are. So it is best to think of it as an installation file. If you have come across .msi files on Windows or .dmg files on MacOS you can probably think of it as something like those.
Tar files are are files for archiving, storage or backup. Like zip files they are just a collection of different files.
Quote:
Originally Posted by ift38375
3) what is use of UUCP ?
These days? Not much, at least for every day users. Perhaps I can turn the question around and ask why you want to know or why you think it is important?
rpms are neither. Strictly speaking it is an archive format (collection of files) with meta data used by the rpm package manager to understand what the package is, what it depends on and what its contents are. So it is best to think of it as an installation file. If you have come across .msi files on Windows or .dmg files on MacOS you can probably think of it as something like those.
Tar files are are files for archiving, storage or backup. Like zip files they are just a collection of different files.
These days? Not much, at least for every day users. Perhaps I can turn the question around and ask why you want to know or why you think it is important?
Actually i am Preparing for post Graduation and Linux is in my Syllabus.
That's why i was asking about UUCP command.
@ift38375: You might want to post an intro in the intro forum. I already read your first post where you stated:
Quote:
Originally Posted by ift38375
I am new in linux....I am eager to know about Linux functionality
However it would be nice to know a little bit more about you. That way people could pitch their answers better to you as they have a better understanding of your IT background.
I wouldn't mind knowing stuff like:
1. What computer systems have you used before? Windows, Mac, etc. What versions?
2. Why are you interested in Linux? For a job, school, or just to teach yourself more about IT? EDIT: Ok, I see you just answered this one above.
3. How technical do you consider yourself, perhaps with examples of how you use or have used computers previously?
4. How old are you?
And most importantly:
5. How did you end up with a machine running such an old distro?
Regarding that last point most people's introduction to Linux is via a recent version of one of the more user friendly distros like Ubuntu, Mint, openSUSE, Mageia or Fedora. Your choice is therefore a unusual so you might want to explain it.
If you do post an into, use the intro forum however, not here as it would be fairly off topic.
Read the wikipedia article on UUCP in particular the sections on 'Decline' and 'Last uses and legacy'. Not many people are interested in UUCP these days, unless they are interested in it from a historical perspective.
2) .rpm and .tar.?? are configuration file or Executable file or else ?
3) what is use of UUCP ?
I suggest you better get the basics of linux read. There are tons of tutorial on net. rpm or tar are not configuration file or executable files. They are packagers. You can archive a set files to tar. The xz you mentioned earlier is a compersion type. So what you mentioned earlier was a compressed and archived file. you can use a software to delivered as tar file and you can install software from them. Once uncompressed and expanded you can use make tool to install the software. rpm is another tool to install the software. .rpm is not a config or executable by itself. You install it using #rpm -iv <file>.rpm and it puts the executable and configuration files in places the developer of the software has choosen as the right place. Same with tar file.
Atleast read the basics of Linux before you work on it. There are thousands of tutorials on internet , google it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.