LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-19-2011, 08:42 AM   #1
mesuutt
Member
 
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, 04:20 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,216

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
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
Eg.

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

HTH,

Evo2.
 
Old 09-21-2011, 09:45 AM   #3
mesuutt
Member
 
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
 
  


Reply

Tags
aptitude


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 08:27 AM
Pruning a huge /usr directory with 'aptitude' fof3 Linux - Newbie 6 01-12-2009 02:22 PM
How do i assign max cpu to applications? RonaldUitAlmere Debian 3 05-23-2006 05:44 AM
Assign rights to directory robertmarkbram Linux - Newbie 4 08-15-2003 07:58 AM
How to assign directory access to a user linuxfans Linux - General 7 04-16-2003 12:06 PM


All times are GMT -5. The time now is 12:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration