Debian This forum is for the discussion of Debian Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
08-04-2010, 04:26 PM
|
#1
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Rep:
|
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.
|
|
|
08-04-2010, 04:33 PM
|
#2
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,300
|
As far as I know
requires root user to run.
http://linux.die.net/man/8/apt-get
Last edited by rokytnji; 08-04-2010 at 04:38 PM.
|
|
|
08-04-2010, 04:42 PM
|
#3
|
Senior Member
Registered: Dec 2005
Posts: 1,686
Rep: 
|
Installing a package requires root permissions. But that doesn't mean the installed application has root access too!
|
|
|
08-04-2010, 04:52 PM
|
#4
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
Fedora briefly flirted with this idea; they got a lot of bad press! 
|
|
|
08-04-2010, 05:04 PM
|
#5
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,300
|
Dutch Master is right.
Because in Terminal
will start from user console.
To access/edit any root files.
or
is needed prior to launching said application.
Last edited by rokytnji; 08-04-2010 at 05:07 PM.
|
|
|
08-04-2010, 05:23 PM
|
#6
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Original Poster
Rep:
|
Quote:
Originally Posted by Dutch Master
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?
|
|
|
08-04-2010, 05:32 PM
|
#7
|
Senior Member
Registered: Dec 2005
Posts: 1,686
Rep: 
|
Yes. Try
Code:
aptitude show <package-name>
Also, the dedicated package page on the Debian packages-list website.
|
|
|
08-04-2010, 05:39 PM
|
#8
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Original Poster
Rep:
|
Quote:
Originally Posted by Dutch Master
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.
|
|
|
08-04-2010, 05:43 PM
|
#9
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
Quote:
Originally Posted by wearetheborg
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. 
|
|
|
08-04-2010, 05:52 PM
|
#10
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
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.
|
|
|
08-04-2010, 05:52 PM
|
#11
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Delete!
Last edited by evo2; 08-04-2010 at 05:54 PM.
Reason: F$%?ing chromium double posting
|
|
|
08-04-2010, 05:53 PM
|
#12
|
Senior Member
Registered: Dec 2005
Posts: 1,686
Rep: 
|
You didn't check the package page, have you? Example (in this case, the openoffice.org-base package)
|
|
|
08-04-2010, 06:58 PM
|
#13
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Original Poster
Rep:
|
evo2, thanks!
Quote:
Originally Posted by Dutch Master
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.
|
|
|
08-04-2010, 07:41 PM
|
#14
|
Senior Member
Registered: Dec 2005
Posts: 1,686
Rep: 
|
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... 
|
|
|
08-04-2010, 07:53 PM
|
#15
|
Member
Registered: Sep 2004
Distribution: Mint 19.1
Posts: 298
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 03:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|