LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-04-2010, 04:26 PM   #1
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Rep: Reputation: 41
Any way to install .deb packages without giving root access?


Is there any way to install .deb packages without giving root access?
That it, I have root access, but I dont to give root access to the .deb package.
This is for instance to install the .deb of SipderOak online backup took, or to install the .deb of openoffice.

Whenver available, I compile from sources, but sometimes only the .deb is available.
 
Old 08-04-2010, 04:33 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,109
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
As far as I know

Code:
apt-get dpkg -i
requires root user to run.

http://linux.die.net/man/8/apt-get

Last edited by rokytnji; 08-04-2010 at 04:38 PM.
 
Old 08-04-2010, 04:42 PM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Installing a package requires root permissions. But that doesn't mean the installed application has root access too!
 
Old 08-04-2010, 04:52 PM   #4
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Fedora briefly flirted with this idea; they got a lot of bad press!
 
Old 08-04-2010, 05:04 PM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,109
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Dutch Master is right.

Because in Terminal

Code:
openoffice
will start from user console.

To access/edit any root files.

Code:
gksu
or

Code:
su
is needed prior to launching said application.

Last edited by rokytnji; 08-04-2010 at 05:07 PM.
 
Old 08-04-2010, 05:23 PM   #6
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by Dutch Master View Post
Installing a package requires root permissions. But that doesn't mean the installed application has root access too!

Right, is there a way of checking that during install, that the package does not overwrite some system files, or start some services automatically?
 
Old 08-04-2010, 05:32 PM   #7
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yes. Try
Code:
aptitude show <package-name>
Also, the dedicated package page on the Debian packages-list website.
 
Old 08-04-2010, 05:39 PM   #8
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by Dutch Master View Post
Yes. Try
Code:
aptitude show <package-name>
Also, the dedicated package page on the Debian packages-list website.

That seems to only show the text description by the author, and "depends on"

BTW, I'm concerned about .deb packages from outside the official debian repositories.

Last edited by wearetheborg; 08-04-2010 at 05:40 PM.
 
Old 08-04-2010, 05:43 PM   #9
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by wearetheborg View Post
BTW, I'm concerned about .deb packages from outside the official debian repositories.
You should be; the Debian repositories are among the most stable, well-tested software sources in existence.
 
Old 08-04-2010, 05:52 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
You can extract the package and then ready the pre and post install scripts (if it has any)

Code:
ar x foo.deb
tar xzf control.tar.gz
Then look at the files postinst and preinst (and perhaps prerm and postrm). These are the dangerous files since they will be run as root as part of the package installation (removal) procedure.

Cheers,

Evo2.
 
Old 08-04-2010, 05:52 PM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Delete!

Last edited by evo2; 08-04-2010 at 05:54 PM. Reason: F$%?ing chromium double posting
 
Old 08-04-2010, 05:53 PM   #12
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
You didn't check the package page, have you? Example (in this case, the openoffice.org-base package)
 
Old 08-04-2010, 06:58 PM   #13
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Original Poster
Rep: Reputation: 41
evo2, thanks!

Quote:
Originally Posted by Dutch Master View Post
You didn't check the package page, have you? Example (in this case, the openoffice.org-base package)

Sorry, my openoffice example was for the deb downloaded directly from openoffice.org (openoffice in Lenny is 2.4).
Also, I am assuming that the packages in http://packages.debian.org/lenny are trustable, my concern is for packages outside.

Is there a utility that will show me the file list as in that page for any .deb, downloaded from anywhere?

Last edited by wearetheborg; 08-04-2010 at 06:59 PM.
 
Old 08-04-2010, 07:41 PM   #14
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Only the method already described by Evo2, via the Control file. With your level of anxiety (even paranoia), if you don't know what that's all about and/or don't want to read up on it, installing .deb packages from 3rd parties is not for you. Expecting a GUI package for this kind of research (that's what I conclude you're after) is also a bit futile...
 
Old 08-04-2010, 07:53 PM   #15
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298

Original Poster
Rep: Reputation: 41
Command line utilities are fine
I want to read up on it, and thats why I posted here for some pointers, and I am goinf to use evo2's method!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
giving non-root users access to sound in 12.2 zipoh Slackware - Installation 2 03-24-2009 03:34 PM
how can ý install .deb packages in mdk9.1? DaesAgelmar Mandriva 1 08-25-2003 11:26 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM
About giving ppl root/wheel access unSpawn Linux - General 1 05-20-2001 05:52 PM
About giving ppl root/wheel access unSpawn Linux - Newbie 0 05-20-2001 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration