You are not logged in.

#1 2008-03-02 01:49:26

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

ext3 file system and pacman queries

I feel quite stupid making this thread. I have a couple of questions, fundamentals, that I need addressed. Mostly, they revolve around pacman and apps. Here we go!

1. When I install a package/program (are these terms interchangeable?), where does it go?

2. When one installs a program from pacman, is it either compressed or in executable form?

3. What is the Linux equivalent of .exe?


Once these questions are answered, more will come. Thanks, in advance!

Offline

#2 2008-03-02 02:26:14

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: ext3 file system and pacman queries

When you install a package, there is information in the package that tells pacman where to put it. This could be /usr/bin in the case of a program.  Each package comes in a .tar.gz format which is compressed to save time and bandwidth when downloading, but when it is installed it is no longer in an uncompressed form.

Linux itself does not have a .exe format, this is just a file extension that tells windows that the file is an executable binary. However in the *nix environment you have a lot more options with regards to files being executable and not all of them are binary. It also has a much more complex permissions system which allows granular control over who can read, write or execute a particular file. 

If you perform ls -l at a command shell then you will see the different permissions each file has. If you have executable rights to a particular file, and it is of an executable form that your OS recognises, then you will be able to run it. Simple as that. If it is not executable, but you still have executable rights on it, then it won't run, and so on.  It might be worth reading a tutorial somewhere about how the filesystem and linux operate.

Offline

#3 2008-03-02 02:29:28

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: ext3 file system and pacman queries

1) It depends on the software you install.
Usually its files get split in the filesystem: binaries (the executables) and scripts goes in /bin and /usr/bin
configuration files in /etc (and the program might create some files for per-user configuration in your home directory)
other generic data (man pages, images, licenses) in /usr/share/
etc
As for bigger projects or games, I have kdemod and quake3 in /opt/.
It really depends on the program and on who packaged it.

The package contains stuff, not necessairely a program, hence the name.


2) The file pacman downloads is .tar.gz which is linuxian for compressed archive. You can open it in your desktop manager to see what's inside and then praise pacman's simplicity (remember to tick "show hidden files").

3)

carlocci ~  $  cd /bin
carlocci /bin  $  file ls
ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.16, dynamically linked (uses shared libs), stripped

Offline

#4 2008-03-02 02:47:47

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: ext3 file system and pacman queries

Thanks! So once you have an application, you can run it in your GUI by clicking on it... and it has a specific command to start it using the CLI as well, right? Also, if a program is meant to be run in a DE, say Firefox, if you type the command to execute it before you start your GUI (like when you first log in) what will happen? Error? Or will it start the GUI and then execute?

Offline

#5 2008-03-02 03:36:04

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: ext3 file system and pacman queries

Xs1t0ry wrote:

Also, if a program is meant to be run in a DE, say Firefox, if you type the command to execute it before you start your GUI (like when you first log in) what will happen? Error? Or will it start the GUI and then execute?

You'll get an error.  Firefox needs a gui in order to run.  (I just tried it)

Offline

#6 2008-03-02 04:04:55

ebirtaid
Member
From: USA
Registered: 2007-11-18
Posts: 52

Re: ext3 file system and pacman queries

you could set it to run firefox in .xinitrc though and use startx to start just firefox

Offline

#7 2008-03-02 04:46:47

abhidg
Member
From: City of Kol
Registered: 2006-07-01
Posts: 184
Website

Re: ext3 file system and pacman queries

Type "man hier" in a terminal, and you'll understand what the directories like /etc/ /usr/ in linux contain.

Offline

#8 2008-03-02 05:01:55

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: ext3 file system and pacman queries

tigrmesh wrote:
Xs1t0ry wrote:

Also, if a program is meant to be run in a DE, say Firefox, if you type the command to execute it before you start your GUI (like when you first log in) what will happen? Error? Or will it start the GUI and then execute?

You'll get an error.  Firefox needs a gui in order to run.  (I just tried it)

Indeed, you'll get an error advising you that it cannot open a display. All applications require an environment to run in order to operate. So to run a gui app you need the gui running. Of course you can run an application from a terminal session and it will open in the currently running graphical session fine.

Offline

Board footer

Powered by FluxBB