Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
How to query the package owning the file? (no package manger installed)

How to query the package owning the file? (no package manger installed)

2005-07-16       - By Michael Schwendt

 Back
Reply:     1     2     3     4     5     6     7     8     9  

On Fri, 15 Jul 2005 17:39:57 +0530, Truejack wrote:

> I had this question asked in a technical interview.
>  
> How do I find out the package owning a particular file, when no
> package managers are installed?

This doesn't sound as if the question was phrased like that. Unless the
used terminology is a bit weird and, e.g., "package = tarball".  Because
if you don't have package management software installed, you don't use
packages either. If however you install from tar archives, for instance,
it would be a common thing to keep a session log of each of your
installation activities.

> I am assuimg SRPMs are used to install the software?

No. Source RPMs create binary RPMs and hence need at least rpm2cpio
or, well, rpm to install them. For the former you need to keep logs
again as the RPM database is not used.
 
> Is this actually possible? Install the Linux OS without a package manager?
>  
> I know "rpm -qf filename" gives the package owning the file.
> But how to get the package name when I don't have any package manager?
>  
> Maybe this was a question to rattle me?

Maybe. It's at least somewhat likely that they wanted to see whether
you are familiar with command-line rpm and not just a graphical
front-end.

--
Michael Schwendt <mschwendt@(protected)>
Fedora Core release 5 (Development) - Linux 2.6.12-1.1433_FC5
loadavg: 0.29 0.40 0.73

--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list

Earn $52 per hosting referral at Lunarpages.