Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 09-19-2011, 09:42 AM   #1
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Rep: Reputation: 1
Question How am I assign applications from directory to aptitude?

hi friends

I have an offline debian lenny pc.When I installing debian system to pc,debian scan 5 addition debian dvds.After installing I copied all packages from debian dvds to in /mnt/storage/apt/ directory and create shortcut of applications to in /var/cache/apt/archives/ , because I do not like to use dvds for application install each time.I used to work without any problem until yesterday.

Yesterday I install again debian lenny and I did not scan dvds when debian want scan additional dvds.After install I copied again shortcuts to in /var/cache/apt/archives/ but now when I want install an application, as usual I use "aptitude search psycopg2 " command but aptitude not find any application. I need to go install manually from folder with "dpkg -i <packagename>" from directory. I saw synaptic > edit > Add cd-rom options.I think that options assign packages synaptic to names and the package stay on which dvd.

I want that aptitude work with /mnt/storage/apt/ directory.

How am I do it ?

Do can I told my problem to you ?

thanks for helping
Old 09-21-2011, 05:20 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
I'm not sure if I fully understand what your problem is, but the following approach (exact details could be wrong) should work.

You can create a local repository with dpkf-scanpackages and then add an entry to your sources.list

Create repo:
dpkg-scanpackages  /mnt/storage/apt/ | gzip -c > /mnt/storage/apt/Packages.gz
Add to your sources.list:
echo "deb file://mnt storage apt" >> /etc/apt/sources.list
And don't forget to run 'aptitude update'.


Old 09-21-2011, 10:45 AM   #3
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Original Poster
Rep: Reputation: 1
This may be something I'm looking for.
I will try
thanks for reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Assign icons for no icon applications since1992trying Linux - Desktop 5 09-24-2010 09:27 AM
Pruning a huge /usr directory with 'aptitude' fof3 Linux - Newbie 6 01-12-2009 03:22 PM
How do i assign max cpu to applications? RonaldUitAlmere Debian 3 05-23-2006 06:44 AM
Assign rights to directory robertmarkbram Linux - Newbie 4 08-15-2003 08:58 AM
How to assign directory access to a user linuxfans Linux - General 7 04-16-2003 01:06 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:35 PM.

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